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.001321/0.001321, allocations: 103.6 kB / 21.18 MB, free: 0.6445 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.002368/0.002368, allocations: 210 kB / 24.48 MB, free: 3.938 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.466/1.466, allocations: 230.6 MB / 258.2 MB, free: 7.781 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.001751/0.001751, allocations: 47.92 kB / 379 MB, free: 2.457 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2758/0.2776, allocations: 53.36 MB / 432.3 MB, free: 6.723 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003935/0.2815, allocations: 2.159 MB / 434.5 MB, free: 4.559 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001894/0.2834, allocations: 0.8881 MB / 435.4 MB, free: 3.664 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001571/0.2835, allocations: 7.938 kB / 435.4 MB, free: 3.656 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001602/0.2837, allocations: 51.41 kB / 435.4 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004203/0.2841, allocations: 111.3 kB / 435.6 MB, free: 3.496 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004192/0.2845, allocations: 167.7 kB / 435.7 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005127/0.2851, allocations: 422.8 kB / 436.1 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002274/0.2853, allocations: 83.8 kB / 436.2 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003531/0.2856, allocations: 179.3 kB / 436.4 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003176/0.286, allocations: 187 kB / 436.6 MB, free: 2.48 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.376e-05/0.286, allocations: 36 kB / 436.6 MB, free: 2.445 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001271/0.2862, allocations: 55.98 kB / 436.7 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001157/0.2863, allocations: 91.67 kB / 436.7 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002005/0.2865, allocations: 151.2 kB / 436.9 MB, free: 2.152 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005516/0.287, allocations: 413.1 kB / 437.3 MB, free: 1.754 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.287, allocations: 4 kB / 437.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.683e-06/0.287, allocations: 0 / 437.3 MB, free: 1.75 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.608e-05/0.287, allocations: 0 / 437.3 MB, free: 1.75 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.001864/0.2889, allocations: 0.7745 MB / 438.1 MB, free: 0.9219 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.526e-05/0.289, allocations: 12.03 kB / 438.1 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003369/0.2893, allocations: 72.62 kB / 438.2 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006475/0.2899, allocations: 314.8 kB / 438.5 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.29, allocations: 24.8 kB / 438.5 MB, free: 496 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.286e-05/0.29, allocations: 28.33 kB / 438.5 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005742/0.2906, allocations: 263.5 kB / 438.8 MB, free: 204 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.121e-05/0.2906, allocations: 4 kB / 438.8 MB, free: 200 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.037e-05/0.2907, allocations: 4 kB / 438.8 MB, free: 196 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.29e-05/0.2907, allocations: 15.88 kB / 438.8 MB, free: 180 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005424/0.2912, allocations: 189.6 kB / 439 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001389/0.2926, allocations: 0.6227 MB / 439.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005301/0.2931, allocations: 178.7 kB / 439.8 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002373/0.2934, allocations: 88.8 kB / 439.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.956e-05/0.2934, allocations: 4 kB / 439.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005176/0.2939, allocations: 244.9 kB / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 1.984e-06/0.2939, allocations: 0 / 440.1 MB, free: 14.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.001036/0.295, allocations: 387.3 kB / 440.5 MB, free: 14.42 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.746e-05/0.295, allocations: 55.41 kB / 440.5 MB, free: 14.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004136/0.2954, allocations: 324.5 kB / 440.9 MB, free: 14.03 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.667e-05/0.2955, allocations: 37.7 kB / 440.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001695/0.2956, allocations: 188.7 kB / 441.1 MB, free: 13.8 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.582e-05/0.2957, allocations: 87.28 kB / 441.2 MB, free: 13.71 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000132/0.2959, allocations: 78.05 kB / 441.2 MB, free: 13.62 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.2961, allocations: 342.8 kB / 441.6 MB, free: 13.28 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003276/0.2964, allocations: 130.4 kB / 441.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004244/0.2968, allocations: 268 kB / 442 MB, free: 12.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006879/0.2975, allocations: 374.5 kB / 442.3 MB, free: 12.39 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.332e-06/0.2975, allocations: 4 kB / 442.3 MB, free: 12.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008922/0.2984, allocations: 462.8 kB / 442.8 MB, free: 11.91 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.213e-05/0.2984, allocations: 33.7 kB / 442.8 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.027e-05/0.2985, allocations: 4 kB / 442.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.468e-05/0.2985, allocations: 8 kB / 442.8 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003078/0.2988, allocations: 71.89 kB / 442.9 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.211e-05/0.2988, allocations: 11.92 kB / 442.9 MB, free: 11.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002929/0.2991, allocations: 40.14 kB / 443 MB, free: 11.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.936e-05/0.2991, allocations: 20 kB / 443 MB, free: 11.72 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.0002254/0.2994, allocations: 171.4 kB / 443.1 MB, free: 11.54 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.497e-05/0.2994, allocations: 39.7 kB / 443.2 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007776/0.3002, allocations: 313.3 kB / 443.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.3002, allocations: 4 kB / 443.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.849e-06/0.3002, allocations: 0 / 443.5 MB, free: 11.19 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.474e-06/0.3002, allocations: 3.984 kB / 443.5 MB, free: 11.18 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003362/0.3006, allocations: 249.1 kB / 443.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.463e-06/0.3006, allocations: 3.938 kB / 443.7 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002433/0.3008, allocations: 43.91 kB / 443.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.102e-06/0.3008, allocations: 3.938 kB / 443.8 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.999e-05/0.3008, allocations: 11.98 kB / 443.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.154e-06/0.3008, allocations: 7.938 kB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3008, allocations: 4 kB / 443.8 MB, free: 10.84 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001045/0.3019, allocations: 455.2 kB / 444.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.506e-05/0.302, allocations: 35.8 kB / 444.3 MB, free: 10.34 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.925e-05/0.302, allocations: 11.94 kB / 444.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002291/0.3022, allocations: 23.97 kB / 444.3 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.559e-05/0.3023, allocations: 31.98 kB / 444.4 MB, free: 10.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.785e-05/0.3024, allocations: 15.98 kB / 444.4 MB, free: 10.25 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002754/0.3026, allocations: 227.1 kB / 444.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3026, allocations: 0 / 444.6 MB, free: 10.04 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003501/0.303, allocations: 67.89 kB / 444.7 MB, free: 9.969 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.0001526/0.3031, allocations: 119.9 kB / 444.8 MB, free: 9.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007827/0.3039, allocations: 340.9 kB / 445.1 MB, free: 9.488 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.879e-06/0.3039, allocations: 4 kB / 445.1 MB, free: 9.484 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000301/0.3042, allocations: 120.9 kB / 445.2 MB, free: 9.367 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003902/0.3046, allocations: 59.19 kB / 445.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001268/0.3059, allocations: 0.6505 MB / 445.9 MB, free: 8.625 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002191/0.3061, allocations: 189.4 kB / 446.1 MB, free: 8.414 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001214/0.3062, allocations: 35.42 kB / 446.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of SimCode: time 7.12e-07/0.3062, allocations: 0 / 446.2 MB, free: 8.379 MB / 350.1 MB Notification: Performance of Templates: time 0.00849/0.3147, allocations: 4.438 MB / 450.6 MB, free: 3.945 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.525938947219402]