Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001849/0.001849, allocations: 109.1 kB / 21.19 MB, free: 0.7617 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002415/0.002415, allocations: 217 kB / 24.5 MB, free: 4.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.475/1.475, allocations: 230.5 MB / 258.1 MB, free: 8.023 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mean.y|rectifiedMean.y|rootMeanSquare.y|harmonic.mean1.y|harmonic.mean2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") translateModel(Modelica.Blocks.Examples.DemoSignalCharacteristic,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|mean.y|rectifiedMean.y|rootMeanSquare.y|harmonic.mean1.y|harmonic.mean2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002026/0.002026, allocations: 64.05 kB / 379 MB, free: 2.523 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2391/0.2412, allocations: 53.41 MB / 432.4 MB, free: 6.785 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003854/0.245, allocations: 2.315 MB / 434.7 MB, free: 4.465 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001749/0.2468, allocations: 0.958 MB / 435.7 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001401/0.2469, allocations: 7.938 kB / 435.7 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001377/0.247, allocations: 35.55 kB / 435.7 MB, free: 3.457 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003484/0.2474, allocations: 115.2 kB / 435.9 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003846/0.2478, allocations: 171.6 kB / 436 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005252/0.2483, allocations: 426.8 kB / 436.4 MB, free: 2.758 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002048/0.2485, allocations: 84 kB / 436.5 MB, free: 2.676 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003181/0.2488, allocations: 187.2 kB / 436.7 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003058/0.2491, allocations: 187.1 kB / 436.9 MB, free: 2.309 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.219e-05/0.2492, allocations: 44 kB / 436.9 MB, free: 2.266 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001151/0.2493, allocations: 52 kB / 437 MB, free: 2.215 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001047/0.2494, allocations: 95.59 kB / 437.1 MB, free: 2.121 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000189/0.2496, allocations: 183 kB / 437.3 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005087/0.2501, allocations: 419.5 kB / 437.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.568e-06/0.2501, allocations: 0 / 437.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.553e-06/0.2501, allocations: 0 / 437.7 MB, free: 1.539 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.2501, allocations: 3.938 kB / 437.7 MB, free: 1.535 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 53 * Number of variables: 53 Notification: Performance of Generate backend data structure: time 0.001751/0.2519, allocations: 0.7707 MB / 438.4 MB, free: 0.7109 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.539e-05/0.2519, allocations: 8.031 kB / 438.5 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003219/0.2522, allocations: 68.62 kB / 438.5 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000612/0.2528, allocations: 326.7 kB / 438.8 MB, free: 304 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.183e-05/0.2529, allocations: 20.81 kB / 438.9 MB, free: 280 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.93e-05/0.2529, allocations: 28.38 kB / 438.9 MB, free: 252 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005712/0.2535, allocations: 259.4 kB / 439.1 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.968e-05/0.2535, allocations: 7.938 kB / 439.1 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.142e-05/0.2535, allocations: 16 kB / 439.2 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.454e-06/0.2536, allocations: 4 kB / 439.2 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005256/0.2541, allocations: 185.6 kB / 439.3 MB, free: 15.78 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001437/0.2555, allocations: 0.7431 MB / 440.1 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000512/0.256, allocations: 178.7 kB / 440.3 MB, free: 14.81 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002516/0.2563, allocations: 84.8 kB / 440.3 MB, free: 14.73 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.721e-05/0.2563, allocations: 3.984 kB / 440.4 MB, free: 14.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005241/0.2568, allocations: 256.8 kB / 440.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.923e-06/0.2568, allocations: 0 / 440.6 MB, free: 14.46 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009737/0.2578, allocations: 375.4 kB / 441 MB, free: 14.09 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.466e-05/0.2579, allocations: 55.41 kB / 441 MB, free: 14.02 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003828/0.2582, allocations: 324.5 kB / 441.3 MB, free: 13.69 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.211e-05/0.2583, allocations: 37.7 kB / 441.4 MB, free: 13.65 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000149/0.2584, allocations: 188.7 kB / 441.6 MB, free: 13.46 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.095e-05/0.2585, allocations: 87.28 kB / 441.6 MB, free: 13.38 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001203/0.2586, allocations: 78.05 kB / 441.7 MB, free: 13.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001707/0.2588, allocations: 342.8 kB / 442.1 MB, free: 12.95 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002848/0.2591, allocations: 108.7 kB / 442.2 MB, free: 12.84 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003809/0.2595, allocations: 242.3 kB / 442.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006742/0.2602, allocations: 373 kB / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.068e-06/0.2602, allocations: 0 / 442.8 MB, free: 12.11 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008701/0.261, allocations: 430.9 kB / 443.2 MB, free: 11.68 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.121e-05/0.2611, allocations: 36.36 kB / 443.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.2611, allocations: 4 kB / 443.2 MB, free: 11.64 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.464e-05/0.2611, allocations: 8 kB / 443.2 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003034/0.2614, allocations: 75.83 kB / 443.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.2614, allocations: 4 kB / 443.3 MB, free: 11.55 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000286/0.2617, allocations: 47.81 kB / 443.4 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.697e-05/0.2617, allocations: 19.97 kB / 443.4 MB, free: 11.48 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 20 * Number of states: 0 () * Number of discrete variables: 20 (rectifiedMean.mean.y_last,$PRE.rectifiedMean.mean.y_last,mean.y_last,$PRE.mean.y_last,$whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,rootMeanSquare.mean.y_last,$PRE.rootMeanSquare.mean.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,harmonic.mean2.y_last,$PRE.harmonic.mean2.y_last,pulse.T_start,$PRE.pulse.T_start,pulse.count,$PRE.pulse.count,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (45): * Single equations (assignments): 44 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001999/0.2619, allocations: 175.4 kB / 443.5 MB, free: 11.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.766e-05/0.262, allocations: 39.75 kB / 443.6 MB, free: 11.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007295/0.2627, allocations: 310.3 kB / 443.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.092e-06/0.2627, allocations: 4 kB / 443.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.669e-06/0.2627, allocations: 0 / 443.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.619e-06/0.2627, allocations: 0 / 443.9 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003832/0.2631, allocations: 340.3 kB / 444.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.2631, allocations: 0 / 444.2 MB, free: 10.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002306/0.2633, allocations: 39.91 kB / 444.3 MB, free: 10.54 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.2634, allocations: 4 kB / 444.3 MB, free: 10.53 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.811e-05/0.2634, allocations: 11.98 kB / 444.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2634, allocations: 0 / 444.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.22e-07/0.2634, allocations: 4 kB / 444.3 MB, free: 10.52 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001012/0.2644, allocations: 450.2 kB / 444.7 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.656e-05/0.2645, allocations: 47.69 kB / 444.8 MB, free: 10.01 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.148e-05/0.2645, allocations: 12 kB / 444.8 MB, free: 9.996 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00023/0.2648, allocations: 23.97 kB / 444.8 MB, free: 9.973 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.514e-05/0.2648, allocations: 27.89 kB / 444.8 MB, free: 9.945 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.662e-05/0.2649, allocations: 15.98 kB / 444.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002573/0.2651, allocations: 227.1 kB / 445.1 MB, free: 9.711 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2651, allocations: 4 kB / 445.1 MB, free: 9.707 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003469/0.2655, allocations: 71.88 kB / 445.1 MB, free: 9.637 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (harmonic.mean2.x,harmonic.mean1.x,rootMeanSquare.mean.x,rectifiedMean.mean.x,mean.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,harmonic.mean2.y_last,harmonic.mean1.y_last,rootMeanSquare.mean.y_last,rectifiedMean.mean.y_last,mean.y_last,pulse.count,pulse.T_start) * Number of discrete states: 6 (pulse.count,mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (28): * Single equations (assignments): 21 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 7 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001512/0.2656, allocations: 112 kB / 445.3 MB, free: 9.516 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007129/0.2663, allocations: 312 kB / 445.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.956e-06/0.2663, allocations: 0 / 445.6 MB, free: 9.199 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002989/0.2666, allocations: 120 kB / 445.7 MB, free: 9.082 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003621/0.267, allocations: 53 kB / 445.7 MB, free: 9.027 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001184/0.2682, allocations: 0.6505 MB / 446.4 MB, free: 8.344 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004452/0.2686, allocations: 0.7876 MB / 447.2 MB, free: 7.523 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001189/0.2687, allocations: 43.42 kB / 447.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2687, allocations: 0 / 447.2 MB, free: 7.48 MB / 350.1 MB Notification: Performance of Templates: time 0.007688/0.2764, allocations: 4.328 MB / 451.5 MB, free: 3.172 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemoSignalCharacteristic/DemoSignalCharacteristic.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,mean.y,rectifiedMean.y,rootMeanSquare.y,harmonic.mean1.y,harmonic.mean2.y Variables in the result:harmonic.mean1.y,harmonic.mean2.y,mean.y,rectifiedMean.y,rootMeanSquare.y,time [Calling sys.exit(0), Time elapsed: 7.4901243089698255]