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.001658/0.001658, allocations: 112.2 kB / 21.19 MB, free: 0.7617 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.001939/0.001939, allocations: 209.9 kB / 24.49 MB, free: 4.145 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.44/1.44, allocations: 230.6 MB / 258.3 MB, free: 8 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.001827/0.001827, allocations: 51.92 kB / 379 MB, free: 2.625 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3005, allocations: 53.36 MB / 432.4 MB, free: 6.91 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.00377/0.3042, allocations: 2.303 MB / 434.7 MB, free: 4.602 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00197/0.3062, allocations: 0.962 MB / 435.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001848/0.3064, allocations: 11.88 kB / 435.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001605/0.3066, allocations: 31.55 kB / 435.7 MB, free: 3.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003947/0.3069, allocations: 115.3 kB / 435.8 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004282/0.3074, allocations: 171.6 kB / 436 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005182/0.3079, allocations: 426.8 kB / 436.4 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002138/0.3081, allocations: 89.62 kB / 436.5 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003665/0.3085, allocations: 183.3 kB / 436.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003208/0.3088, allocations: 191.1 kB / 436.8 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.23e-05/0.3089, allocations: 36 kB / 436.9 MB, free: 2.402 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001139/0.309, allocations: 55.94 kB / 436.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.3091, allocations: 103.6 kB / 437 MB, free: 2.246 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001983/0.3093, allocations: 175 kB / 437.2 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005232/0.3098, allocations: 424.5 kB / 437.6 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.3098, allocations: 3.938 kB / 437.6 MB, free: 1.664 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3098, allocations: 4 kB / 437.6 MB, free: 1.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.216e-06/0.3098, allocations: 0 / 437.6 MB, free: 1.66 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.001755/0.3116, allocations: 0.7668 MB / 438.4 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.457e-05/0.3116, allocations: 12.03 kB / 438.4 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003256/0.312, allocations: 64.62 kB / 438.5 MB, free: 0.7656 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006419/0.3126, allocations: 322.7 kB / 438.8 MB, free: 440 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.077e-05/0.3126, allocations: 16.81 kB / 438.8 MB, free: 420 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.278e-05/0.3127, allocations: 40.33 kB / 438.8 MB, free: 380 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005527/0.3133, allocations: 263.4 kB / 439.1 MB, free: 116 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.986e-05/0.3133, allocations: 4 kB / 439.1 MB, free: 112 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.049e-05/0.3133, allocations: 8 kB / 439.1 MB, free: 104 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.568e-06/0.3133, allocations: 8 kB / 439.1 MB, free: 96 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000513/0.3138, allocations: 181.6 kB / 439.3 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001451/0.3153, allocations: 0.7431 MB / 440 MB, free: 15.13 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004926/0.3158, allocations: 182.7 kB / 440.2 MB, free: 14.94 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002546/0.316, allocations: 84.8 kB / 440.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.117e-05/0.3161, allocations: 4 kB / 440.3 MB, free: 14.85 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000518/0.3166, allocations: 244.9 kB / 440.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.104e-06/0.3166, allocations: 0 / 440.5 MB, free: 14.6 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009986/0.3176, allocations: 383.3 kB / 440.9 MB, free: 14.22 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.547e-05/0.3176, allocations: 63.38 kB / 441 MB, free: 14.14 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004072/0.318, allocations: 320.5 kB / 441.3 MB, free: 13.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.547e-05/0.3181, allocations: 37.7 kB / 441.3 MB, free: 13.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000155/0.3182, allocations: 188.7 kB / 441.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.399e-05/0.3183, allocations: 95.27 kB / 441.6 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001249/0.3185, allocations: 74.06 kB / 441.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001693/0.3186, allocations: 342.8 kB / 442 MB, free: 13.07 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002787/0.3189, allocations: 100.7 kB / 442.1 MB, free: 12.97 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003785/0.3193, allocations: 241.4 kB / 442.3 MB, free: 12.68 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006794/0.32, allocations: 374.5 kB / 442.7 MB, free: 12.25 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.32, allocations: 4 kB / 442.7 MB, free: 12.24 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008994/0.3209, allocations: 432.9 kB / 443.1 MB, free: 11.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.905e-05/0.3209, allocations: 33.7 kB / 443.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.088e-05/0.3209, allocations: 4 kB / 443.2 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.454e-05/0.3209, allocations: 7.938 kB / 443.2 MB, free: 11.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003032/0.3213, allocations: 76.42 kB / 443.3 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.606e-05/0.3213, allocations: 19.86 kB / 443.3 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002965/0.3216, allocations: 35.83 kB / 443.3 MB, free: 11.63 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.457e-05/0.3216, allocations: 20 kB / 443.3 MB, free: 11.61 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.0002404/0.3218, allocations: 167.4 kB / 443.5 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.918e-05/0.3219, allocations: 39.7 kB / 443.5 MB, free: 11.39 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007852/0.3227, allocations: 314.3 kB / 443.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.792e-06/0.3227, allocations: 4 kB / 443.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.911e-06/0.3227, allocations: 0 / 443.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.571e-06/0.3227, allocations: 0 / 443.8 MB, free: 11.08 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004627/0.3232, allocations: 336.3 kB / 444.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.918e-06/0.3232, allocations: 0 / 444.2 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002373/0.3234, allocations: 47.91 kB / 444.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.27e-06/0.3234, allocations: 0 / 444.2 MB, free: 10.66 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.3235, allocations: 11.98 kB / 444.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.035e-06/0.3235, allocations: 0 / 444.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.363e-06/0.3235, allocations: 0 / 444.2 MB, free: 10.65 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001068/0.3245, allocations: 462.4 kB / 444.7 MB, free: 10.18 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.023e-05/0.3246, allocations: 31.73 kB / 444.7 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.94e-05/0.3247, allocations: 20.05 kB / 444.7 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002369/0.3249, allocations: 15.98 kB / 444.8 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.549e-05/0.325, allocations: 31.89 kB / 444.8 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.3251, allocations: 11.98 kB / 444.8 MB, free: 10.07 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002989/0.3254, allocations: 235 kB / 445 MB, free: 9.84 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3254, allocations: 4 kB / 445 MB, free: 9.836 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0004133/0.3258, allocations: 67.89 kB / 445.1 MB, free: 9.77 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.0001648/0.3259, allocations: 115.9 kB / 445.2 MB, free: 9.645 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007955/0.3267, allocations: 311.3 kB / 445.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.767e-06/0.3267, allocations: 0 / 445.5 MB, free: 9.328 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003193/0.327, allocations: 123.8 kB / 445.6 MB, free: 9.207 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003956/0.3274, allocations: 56.92 kB / 445.7 MB, free: 9.148 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001408/0.3289, allocations: 0.6512 MB / 446.3 MB, free: 8.465 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005197/0.3294, allocations: 0.7915 MB / 447.1 MB, free: 7.645 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000138/0.3295, allocations: 39.42 kB / 447.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of SimCode: time 7.52e-07/0.3295, allocations: 0 / 447.2 MB, free: 7.605 MB / 350.1 MB Notification: Performance of Templates: time 0.009018/0.3385, allocations: 4.327 MB / 451.5 MB, free: 3.297 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.318118882831186]