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.001696/0.001696, allocations: 107.6 kB / 21.19 MB, free: 0.6484 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.001996/0.001996, allocations: 214.8 kB / 24.48 MB, free: 3.957 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.543/1.543, allocations: 230.6 MB / 258.2 MB, free: 7.789 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.00155/0.00155, allocations: 47.94 kB / 379 MB, free: 2.453 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.313/0.3145, allocations: 53.37 MB / 432.3 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.004171/0.3187, allocations: 2.147 MB / 434.5 MB, free: 4.543 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002096/0.3208, allocations: 0.9036 MB / 435.4 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002176/0.321, allocations: 11.88 kB / 435.4 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001867/0.3212, allocations: 35.53 kB / 435.4 MB, free: 3.586 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004393/0.3216, allocations: 111.3 kB / 435.5 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004629/0.3221, allocations: 171.6 kB / 435.7 MB, free: 3.309 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005293/0.3226, allocations: 426.9 kB / 436.1 MB, free: 2.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002328/0.3228, allocations: 91.72 kB / 436.2 MB, free: 2.805 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003536/0.3232, allocations: 183.3 kB / 436.4 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003427/0.3235, allocations: 199 kB / 436.6 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.236e-05/0.3236, allocations: 40 kB / 436.6 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000134/0.3237, allocations: 52 kB / 436.7 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.3239, allocations: 91.66 kB / 436.8 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001792/0.324, allocations: 147.2 kB / 436.9 MB, free: 2.105 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005537/0.3246, allocations: 421.1 kB / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3246, allocations: 0 / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.924e-06/0.3246, allocations: 0 / 437.3 MB, free: 1.699 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.807e-06/0.3246, allocations: 0 / 437.3 MB, free: 1.699 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.001823/0.3264, allocations: 0.7745 MB / 438.1 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.663e-05/0.3265, allocations: 8.031 kB / 438.1 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003398/0.3268, allocations: 72.62 kB / 438.2 MB, free: 0.793 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006479/0.3275, allocations: 314.8 kB / 438.5 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.958e-05/0.3275, allocations: 20.81 kB / 438.5 MB, free: 452 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.714e-05/0.3276, allocations: 36.33 kB / 438.5 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005562/0.3281, allocations: 263.4 kB / 438.8 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.88e-05/0.3281, allocations: 0 / 438.8 MB, free: 152 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.683e-05/0.3282, allocations: 23.97 kB / 438.8 MB, free: 128 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.205e-05/0.3282, allocations: 4 kB / 438.8 MB, free: 124 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0005189/0.3287, allocations: 181.6 kB / 439 MB, free: 15.94 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001359/0.3301, allocations: 0.6228 MB / 439.6 MB, free: 15.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005054/0.3306, allocations: 178.7 kB / 439.8 MB, free: 15.11 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000242/0.3308, allocations: 84.8 kB / 439.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.147e-05/0.3308, allocations: 4 kB / 439.9 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005165/0.3314, allocations: 244.9 kB / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of pre-optimization done (n=28): time 2.094e-06/0.3314, allocations: 0 / 440.1 MB, free: 14.76 MB / 350.1 MB Notification: Performance of matching and sorting (n=28): time 0.0009929/0.3324, allocations: 383.3 kB / 440.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.663e-05/0.3324, allocations: 63.39 kB / 440.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004011/0.3328, allocations: 320.5 kB / 440.9 MB, free: 13.98 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.569e-05/0.3329, allocations: 41.69 kB / 440.9 MB, free: 13.94 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001565/0.333, allocations: 184.7 kB / 441.1 MB, free: 13.75 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.909e-05/0.3331, allocations: 91.27 kB / 441.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001194/0.3332, allocations: 74.06 kB / 441.3 MB, free: 13.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001788/0.3334, allocations: 350.8 kB / 441.6 MB, free: 13.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002909/0.3337, allocations: 122.4 kB / 441.7 MB, free: 13.11 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004007/0.3341, allocations: 268 kB / 442 MB, free: 12.78 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006445/0.3347, allocations: 374.5 kB / 442.3 MB, free: 12.34 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.757e-06/0.3347, allocations: 3.938 kB / 442.4 MB, free: 12.34 MB / 350.1 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0008736/0.3356, allocations: 467 kB / 442.8 MB, free: 11.87 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.797e-05/0.3357, allocations: 37.69 kB / 442.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.989e-06/0.3357, allocations: 4 kB / 442.8 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.183e-05/0.3357, allocations: 4 kB / 442.9 MB, free: 11.82 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002919/0.336, allocations: 71.89 kB / 442.9 MB, free: 11.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.44e-05/0.336, allocations: 11.94 kB / 442.9 MB, free: 11.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000274/0.3363, allocations: 40.11 kB / 443 MB, free: 11.7 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.121e-05/0.3363, allocations: 27.97 kB / 443 MB, free: 11.67 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.0002084/0.3365, allocations: 167.4 kB / 443.2 MB, free: 11.49 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.15e-05/0.3366, allocations: 39.7 kB / 443.2 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007425/0.3373, allocations: 313.4 kB / 443.5 MB, free: 11.14 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.053e-06/0.3373, allocations: 7.938 kB / 443.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.3373, allocations: 0 / 443.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.3374, allocations: 3.984 kB / 443.5 MB, free: 11.13 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003279/0.3377, allocations: 253.1 kB / 443.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.384e-06/0.3377, allocations: 0 / 443.8 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002225/0.3379, allocations: 43.91 kB / 443.8 MB, free: 10.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.54e-06/0.3379, allocations: 3.938 kB / 443.8 MB, free: 10.8 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.858e-05/0.3379, allocations: 11.98 kB / 443.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.024e-06/0.3379, allocations: 4 kB / 443.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.523e-06/0.3379, allocations: 0 / 443.8 MB, free: 10.79 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.3389, allocations: 455.2 kB / 444.3 MB, free: 10.32 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.39e-05/0.339, allocations: 39.8 kB / 444.3 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.502e-05/0.3391, allocations: 7.938 kB / 444.3 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002074/0.3393, allocations: 23.97 kB / 444.3 MB, free: 10.25 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.662e-05/0.3394, allocations: 31.89 kB / 444.4 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.664e-05/0.3394, allocations: 16.17 kB / 444.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002641/0.3397, allocations: 227.1 kB / 444.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3397, allocations: 0 / 444.6 MB, free: 9.988 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003644/0.34, allocations: 75.88 kB / 444.7 MB, free: 9.914 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.0001722/0.3402, allocations: 116 kB / 444.8 MB, free: 9.789 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007559/0.341, allocations: 340.7 kB / 445.1 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.341, allocations: 0 / 445.1 MB, free: 9.438 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002974/0.3413, allocations: 120.9 kB / 445.3 MB, free: 9.32 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003756/0.3416, allocations: 55.06 kB / 445.3 MB, free: 9.266 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00125/0.3429, allocations: 0.6582 MB / 446 MB, free: 8.574 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001965/0.3431, allocations: 181.5 kB / 446.1 MB, free: 8.371 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001105/0.3432, allocations: 39.42 kB / 446.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of SimCode: time 3.91e-07/0.3432, allocations: 0 / 446.2 MB, free: 8.332 MB / 350.1 MB Notification: Performance of Templates: time 0.008073/0.3513, allocations: 4.441 MB / 450.6 MB, free: 3.902 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.71655313501833]