Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.0008351/0.0008351, allocations: 87.62 kB / 21.44 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.003489/0.003489, allocations: 160.4 kB / 24.7 MB, free: 9.43 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 0.911/0.911, allocations: 177.2 MB / 205 MB, free: 5.738 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/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_4.1.0_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_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.063e-06/2.063e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.695e-05/2.901e-05, allocations: 4.812 kB / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.002806/0.002835, allocations: 2.154 MB / 328 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001136/0.003971, allocations: 0.9112 MB / 328.9 MB, free: 12.33 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001265/0.004098, allocations: 7.938 kB / 328.9 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001227/0.00422, allocations: 39.53 kB / 328.9 MB, free: 12.28 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002815/0.004502, allocations: 115.1 kB / 329.1 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.004768, allocations: 171.6 kB / 329.2 MB, free: 12 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000337/0.005105, allocations: 442.7 kB / 329.7 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001706/0.005276, allocations: 87.72 kB / 329.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002833/0.005559, allocations: 243.4 kB / 330 MB, free: 11.25 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001907/0.00575, allocations: 151.5 kB / 330.1 MB, free: 11.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.396e-05/0.005794, allocations: 36 kB / 330.2 MB, free: 11.06 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.757e-05/0.005862, allocations: 55.86 kB / 330.2 MB, free: 11.01 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.677e-05/0.005928, allocations: 103.6 kB / 330.3 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.246e-05/0.006021, allocations: 119.6 kB / 330.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003593/0.00638, allocations: 430.6 kB / 330.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.034e-06/0.006382, allocations: 0 / 330.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.92e-07/0.006383, allocations: 0 / 330.9 MB, free: 10.37 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.38e-06/0.006389, allocations: 0 / 330.9 MB, free: 10.37 MB / 298.7 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.001028/0.007417, allocations: 0.77 MB / 331.6 MB, free: 9.547 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.797e-05/0.007455, allocations: 8.031 kB / 331.6 MB, free: 9.539 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001779/0.007633, allocations: 68.62 kB / 331.7 MB, free: 9.473 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000376/0.008009, allocations: 326 kB / 332 MB, free: 9.129 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.135e-05/0.00803, allocations: 20.88 kB / 332 MB, free: 9.105 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.35e-05/0.008074, allocations: 28.38 kB / 332.1 MB, free: 9.078 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003495/0.008423, allocations: 256.5 kB / 332.3 MB, free: 8.82 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.901e-05/0.008442, allocations: 8.141 kB / 332.3 MB, free: 8.812 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.864e-05/0.008471, allocations: 12.36 kB / 332.3 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.00848, allocations: 7.938 kB / 332.3 MB, free: 8.793 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002876/0.008768, allocations: 193.8 kB / 332.5 MB, free: 8.605 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008142/0.009582, allocations: 0.6269 MB / 333.2 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002989/0.009881, allocations: 182.7 kB / 333.3 MB, free: 7.758 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001288/0.01001, allocations: 84.75 kB / 333.4 MB, free: 7.672 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.591e-05/0.01004, allocations: 4 kB / 333.4 MB, free: 7.668 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004771/0.01051, allocations: 241 kB / 333.7 MB, free: 7.418 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 1.543e-06/0.01051, allocations: 0 / 333.7 MB, free: 7.418 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0005829/0.0111, allocations: 392.9 kB / 334 MB, free: 7.031 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.01113, allocations: 55.41 kB / 334.1 MB, free: 6.965 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002413/0.01137, allocations: 328.5 kB / 334.4 MB, free: 6.629 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.744e-05/0.0114, allocations: 37.7 kB / 334.5 MB, free: 6.586 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.493e-05/0.01149, allocations: 180.8 kB / 334.6 MB, free: 6.406 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.012e-05/0.01154, allocations: 95.2 kB / 334.7 MB, free: 6.312 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.661e-05/0.01162, allocations: 74.06 kB / 334.8 MB, free: 6.23 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.441e-05/0.01172, allocations: 346.8 kB / 335.1 MB, free: 5.883 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001647/0.01188, allocations: 126.4 kB / 335.3 MB, free: 5.754 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000215/0.0121, allocations: 264 kB / 335.5 MB, free: 5.43 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003515/0.01245, allocations: 378.4 kB / 335.9 MB, free: 4.992 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.01245, allocations: 0 / 335.9 MB, free: 4.992 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0004769/0.01293, allocations: 459.2 kB / 336.3 MB, free: 4.527 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.186e-05/0.01296, allocations: 34.23 kB / 336.4 MB, free: 4.488 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.859e-06/0.01297, allocations: 11.94 kB / 336.4 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.812e-05/0.01299, allocations: 11.94 kB / 336.4 MB, free: 4.465 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001531/0.01314, allocations: 67.89 kB / 336.5 MB, free: 4.395 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.588e-06/0.01315, allocations: 11.94 kB / 336.5 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001308/0.01328, allocations: 39.83 kB / 336.5 MB, free: 4.344 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.903e-05/0.0133, allocations: 19.98 kB / 336.5 MB, free: 4.324 MB / 298.7 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.0001189/0.01342, allocations: 171.8 kB / 336.7 MB, free: 4.148 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.384e-05/0.01345, allocations: 43.75 kB / 336.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004136/0.01387, allocations: 309.3 kB / 337 MB, free: 3.797 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.418e-06/0.01387, allocations: 7.938 kB / 337.1 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.01388, allocations: 4.062 kB / 337.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.09e-06/0.01388, allocations: 0 / 337.1 MB, free: 3.785 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001826/0.01406, allocations: 257.1 kB / 337.3 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.693e-06/0.01407, allocations: 0 / 337.3 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001141/0.01418, allocations: 35.97 kB / 337.3 MB, free: 3.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.846e-06/0.01418, allocations: 0 / 337.3 MB, free: 3.469 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.798e-05/0.0142, allocations: 11.98 kB / 337.4 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.0142, allocations: 0 / 337.4 MB, free: 3.457 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.924e-06/0.0142, allocations: 3.938 kB / 337.4 MB, free: 3.453 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005552/0.01476, allocations: 457.1 kB / 337.8 MB, free: 2.984 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.136e-05/0.0148, allocations: 43.75 kB / 337.8 MB, free: 2.941 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.473e-05/0.01484, allocations: 11.98 kB / 337.9 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.652e-05/0.01493, allocations: 15.98 kB / 337.9 MB, free: 2.914 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.469e-05/0.015, allocations: 27.89 kB / 337.9 MB, free: 2.887 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.752e-05/0.01501, allocations: 15.98 kB / 337.9 MB, free: 2.871 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001622/0.01518, allocations: 235 kB / 338.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.01518, allocations: 0 / 338.1 MB, free: 2.645 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002036/0.01538, allocations: 71.83 kB / 338.2 MB, free: 2.574 MB / 298.7 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 9.518e-05/0.01547, allocations: 123.1 kB / 338.3 MB, free: 2.445 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.000414/0.01589, allocations: 334.5 kB / 338.7 MB, free: 2.102 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.01589, allocations: 8 kB / 338.7 MB, free: 2.094 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001599/0.01605, allocations: 119.8 kB / 338.8 MB, free: 1.977 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002205/0.01627, allocations: 45.12 kB / 338.8 MB, free: 1.93 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007195/0.01699, allocations: 0.6263 MB / 339.5 MB, free: 1.273 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000113/0.0171, allocations: 185.3 kB / 339.6 MB, free: 1.062 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.118e-05/0.01718, allocations: 40.48 kB / 339.7 MB, free: 1.023 MB / 298.7 MB Notification: Performance of SimCode: time 5.41e-07/0.01719, allocations: 0 / 339.7 MB, free: 1.023 MB / 298.7 MB Notification: Performance of Templates: time 0.004459/0.02164, allocations: 4.459 MB / 344.1 MB, free: 12.57 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.DemoSignalCharacteristic_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemoSignalCharacteristic/DemoSignalCharacteristic.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 4.61459937505424]