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.001268/0.001268, allocations: 119.1 kB / 18.46 MB, free: 4.562 MB / 14.72 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.001351/0.001351, allocations: 215.2 kB / 21.42 MB, free: 1.605 MB / 14.72 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 1.513/1.513, allocations: 230.6 MB / 254.8 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] 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 0.001543/0.001543, allocations: 47.92 kB / 374.2 MB, free: 9.688 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1097/0.1112, allocations: 53.33 MB / 427.5 MB, free: 4.262 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003829/0.115, allocations: 2.292 MB / 429.8 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001878/0.1169, allocations: 0.9542 MB / 430.7 MB, free: 0.9961 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001825/0.1171, allocations: 7.938 kB / 430.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001684/0.1173, allocations: 39.53 kB / 430.8 MB, free: 0.9492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000427/0.1177, allocations: 107.2 kB / 430.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004472/0.1181, allocations: 171.7 kB / 431.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004998/0.1186, allocations: 418.9 kB / 431.5 MB, free: 272 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.1189, allocations: 91.48 kB / 431.5 MB, free: 176 kB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.2137/0.3326, allocations: 179.6 kB / 431.7 MB, free: 8.129 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004855/0.3331, allocations: 194.3 kB / 431.9 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001341/0.3332, allocations: 39.47 kB / 432 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000158/0.3333, allocations: 56.67 kB / 432 MB, free: 8.117 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001089/0.3335, allocations: 88.62 kB / 432.1 MB, free: 8.105 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002001/0.3337, allocations: 186.8 kB / 432.3 MB, free: 8.047 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007749/0.3344, allocations: 420.7 kB / 432.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.924e-06/0.3344, allocations: 0.75 kB / 432.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.524e-06/0.3344, allocations: 0 / 432.7 MB, free: 7.984 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.382e-05/0.3345, allocations: 0 / 432.7 MB, free: 7.984 MB / 350.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.001883/0.3363, allocations: 0.7339 MB / 433.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.671e-05/0.3364, allocations: 9.719 kB / 433.4 MB, free: 7.457 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0004527/0.3369, allocations: 66.72 kB / 433.5 MB, free: 7.434 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006013/0.3375, allocations: 388.7 kB / 433.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.797e-05/0.3375, allocations: 23.97 kB / 433.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.544e-05/0.3375, allocations: 25.91 kB / 433.9 MB, free: 7.195 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005284/0.3381, allocations: 256.9 kB / 434.2 MB, free: 7.16 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.989e-05/0.3381, allocations: 8.406 kB / 434.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.166e-05/0.3381, allocations: 10.55 kB / 434.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.074e-05/0.3381, allocations: 5.625 kB / 434.2 MB, free: 7.156 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005082/0.3386, allocations: 185 kB / 434.4 MB, free: 7.152 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001398/0.34, allocations: 0.7802 MB / 435.2 MB, free: 6.852 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005212/0.3406, allocations: 182 kB / 435.3 MB, free: 6.828 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002612/0.3408, allocations: 81.95 kB / 435.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.699e-05/0.3409, allocations: 10.03 kB / 435.4 MB, free: 6.82 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005237/0.3414, allocations: 240.7 kB / 435.7 MB, free: 6.766 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.455e-06/0.3414, allocations: 0.5 kB / 435.7 MB, free: 6.766 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001041/0.3424, allocations: 378.5 kB / 436 MB, free: 6.711 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.972e-05/0.3425, allocations: 65.02 kB / 436.1 MB, free: 6.648 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003701/0.3428, allocations: 325.7 kB / 436.4 MB, free: 6.535 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.004e-05/0.3429, allocations: 41.72 kB / 436.5 MB, free: 6.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001251/0.343, allocations: 184.8 kB / 436.6 MB, free: 6.395 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.859e-05/0.3431, allocations: 88.36 kB / 436.7 MB, free: 6.34 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001261/0.3432, allocations: 74.7 kB / 436.8 MB, free: 6.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001018/0.3433, allocations: 344 kB / 437.1 MB, free: 6.008 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002863/0.3436, allocations: 101.6 kB / 437.2 MB, free: 6.008 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003368/0.3439, allocations: 236.7 kB / 437.5 MB, free: 5.844 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006231/0.3445, allocations: 372.5 kB / 437.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.3446, allocations: 1.281 kB / 437.8 MB, free: 5.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008823/0.3454, allocations: 435.8 kB / 438.3 MB, free: 5.555 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.109e-05/0.3455, allocations: 35.58 kB / 438.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.449e-05/0.3455, allocations: 8.969 kB / 438.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.118e-05/0.3455, allocations: 6.344 kB / 438.3 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003136/0.3458, allocations: 73.14 kB / 438.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.505e-05/0.3458, allocations: 9.375 kB / 438.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003057/0.3462, allocations: 43.33 kB / 438.4 MB, free: 5.504 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.232e-05/0.3462, allocations: 18.55 kB / 438.4 MB, free: 5.504 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.mean2.y_last,$PRE.harmonic.mean2.y_last,harmonic.mean1.y_last,$PRE.harmonic.mean1.y_last,pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$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.00017/0.3464, allocations: 166.1 kB / 438.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.106e-05/0.3464, allocations: 40.95 kB / 438.6 MB, free: 5.363 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007702/0.3472, allocations: 311.2 kB / 438.9 MB, free: 5.32 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.923e-06/0.3472, allocations: 7.688 kB / 439 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.803e-06/0.3472, allocations: 0.6562 kB / 439 MB, free: 5.316 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.985e-06/0.3472, allocations: 5.5 kB / 439 MB, free: 5.312 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004021/0.3476, allocations: 361.8 kB / 439.3 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.278e-06/0.3476, allocations: 5.391 kB / 439.3 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002457/0.3479, allocations: 43.66 kB / 439.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.42e-06/0.3479, allocations: 1.344 kB / 439.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.932e-05/0.3479, allocations: 8.781 kB / 439.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.439e-06/0.3479, allocations: 3.406 kB / 439.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.3479, allocations: 0 / 439.4 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001053/0.349, allocations: 458.6 kB / 439.8 MB, free: 4.973 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.474e-05/0.349, allocations: 117.3 kB / 439.9 MB, free: 4.852 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.72e-05/0.3491, allocations: 8.234 kB / 439.9 MB, free: 4.848 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002421/0.3493, allocations: 20.78 kB / 440 MB, free: 4.844 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.752e-05/0.3494, allocations: 31.38 kB / 440 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.754e-05/0.3495, allocations: 11.48 kB / 440 MB, free: 4.832 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002954/0.3498, allocations: 232.9 kB / 440.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3498, allocations: 1.062 kB / 440.2 MB, free: 4.703 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004238/0.3502, allocations: 73.11 kB / 440.3 MB, free: 4.688 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 5 (mean.x,rectifiedMean.mean.x,rootMeanSquare.mean.x,harmonic.mean1.x,harmonic.mean2.x) * Number of discrete variables: 13 ($whenCondition6,$whenCondition5,$whenCondition4,$whenCondition3,$whenCondition2,$whenCondition1,pulse.T_start,pulse.count,mean.y_last,rectifiedMean.mean.y_last,rootMeanSquare.mean.y_last,harmonic.mean1.y_last,harmonic.mean2.y_last) * 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.0001483/0.3503, allocations: 112.3 kB / 440.4 MB, free: 4.594 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007958/0.3511, allocations: 314.9 kB / 440.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.397e-06/0.3511, allocations: 0 / 440.7 MB, free: 4.473 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003391/0.3515, allocations: 120.6 kB / 440.8 MB, free: 4.445 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003973/0.3519, allocations: 59.38 kB / 440.9 MB, free: 4.422 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001257/0.3531, allocations: 0.6431 MB / 441.5 MB, free: 4.023 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002643/0.3534, allocations: 0.7867 MB / 442.3 MB, free: 3.32 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001265/0.3535, allocations: 38.62 kB / 442.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.3535, allocations: 0 / 442.4 MB, free: 3.309 MB / 350.1 MB Notification: Performance of Templates: time 0.01015/0.3637, allocations: 4.347 MB / 446.7 MB, free: 2.898 MB / 350.1 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/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_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: 7.692707807000261]