Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001222/0.001222, allocations: 88.28 kB / 21.43 MB, free: 3.137 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.006819/0.006819, allocations: 156.7 kB / 24.7 MB, free: 8.895 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.926/0.926, allocations: 177 MB / 204.9 MB, free: 5.77 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 325.8 MB, free: 15.41 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.316e-05/3.492e-05, allocations: 2.984 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemoSignalCharacteristic): time 0.003922/0.003957, allocations: 2.159 MB / 327.9 MB, free: 13.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.005821, allocations: 0.9113 MB / 328.8 MB, free: 12.31 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002508/0.006072, allocations: 7.938 kB / 328.9 MB, free: 12.3 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001734/0.006246, allocations: 39.47 kB / 328.9 MB, free: 12.27 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0004507/0.006696, allocations: 103.2 kB / 329 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005/0.007196, allocations: 179.5 kB / 329.2 MB, free: 11.99 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005827/0.007779, allocations: 438.7 kB / 329.6 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002519/0.008031, allocations: 83.73 kB / 329.7 MB, free: 11.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004823/0.008513, allocations: 255.4 kB / 329.9 MB, free: 11.23 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002789/0.008792, allocations: 147.5 kB / 330.1 MB, free: 11.09 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 6.325e-05/0.008855, allocations: 36 kB / 330.1 MB, free: 11.05 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001256/0.008981, allocations: 55.94 kB / 330.2 MB, free: 11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001038/0.009085, allocations: 91.64 kB / 330.2 MB, free: 10.91 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001439/0.009229, allocations: 123.6 kB / 330.4 MB, free: 10.79 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005639/0.009793, allocations: 438.6 kB / 330.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.009797, allocations: 0 / 330.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.693e-06/0.009799, allocations: 0 / 330.8 MB, free: 10.36 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.845e-06/0.009807, allocations: 0 / 330.8 MB, free: 10.36 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.0017/0.01151, allocations: 0.7668 MB / 331.6 MB, free: 9.535 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.697e-05/0.01155, allocations: 15.98 kB / 331.6 MB, free: 9.52 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002932/0.01185, allocations: 64.62 kB / 331.6 MB, free: 9.457 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005614/0.01241, allocations: 326 kB / 332 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.162e-05/0.01244, allocations: 28.86 kB / 332 MB, free: 9.082 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.282e-05/0.01249, allocations: 24.38 kB / 332 MB, free: 9.059 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005046/0.013, allocations: 256.6 kB / 332.3 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.808e-05/0.01302, allocations: 4.141 kB / 332.3 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.1e-05/0.01305, allocations: 12.36 kB / 332.3 MB, free: 8.789 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.011e-05/0.01306, allocations: 7.938 kB / 332.3 MB, free: 8.781 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004235/0.01348, allocations: 189.8 kB / 332.5 MB, free: 8.598 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00121/0.01469, allocations: 0.627 MB / 333.1 MB, free: 7.938 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004399/0.01513, allocations: 182.7 kB / 333.3 MB, free: 7.75 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001889/0.01532, allocations: 84.73 kB / 333.4 MB, free: 7.664 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.85e-05/0.01535, allocations: 4 kB / 333.4 MB, free: 7.66 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004484/0.0158, allocations: 237 kB / 333.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of pre-optimization done (n=28): time 3.436e-06/0.0158, allocations: 0 / 333.6 MB, free: 7.414 MB / 298.7 MB Notification: Performance of matching and sorting (n=28): time 0.0008856/0.01669, allocations: 391.2 kB / 334 MB, free: 7.027 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.564e-05/0.01674, allocations: 63.34 kB / 334 MB, free: 6.953 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003629/0.0171, allocations: 324.5 kB / 334.4 MB, free: 6.621 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.67e-05/0.01714, allocations: 37.7 kB / 334.4 MB, free: 6.578 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000134/0.01728, allocations: 192.7 kB / 334.6 MB, free: 6.387 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.576e-05/0.01735, allocations: 87.28 kB / 334.7 MB, free: 6.301 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001133/0.01746, allocations: 74.06 kB / 334.7 MB, free: 6.219 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001245/0.01759, allocations: 346.8 kB / 335.1 MB, free: 5.871 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002597/0.01785, allocations: 126.4 kB / 335.2 MB, free: 5.742 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003222/0.01817, allocations: 260 kB / 335.5 MB, free: 5.422 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005563/0.01873, allocations: 382.4 kB / 335.8 MB, free: 4.98 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.513e-06/0.01873, allocations: 4 kB / 335.8 MB, free: 4.977 MB / 298.7 MB Notification: Performance of matching and sorting (n=46) (initialization): time 0.0007691/0.0195, allocations: 455.4 kB / 336.3 MB, free: 4.516 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.556e-05/0.01955, allocations: 33.7 kB / 336.3 MB, free: 4.477 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.216e-05/0.01956, allocations: 8.469 kB / 336.3 MB, free: 4.469 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.01959, allocations: 15.94 kB / 336.3 MB, free: 4.453 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002652/0.01985, allocations: 71.89 kB / 336.4 MB, free: 4.383 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.489e-05/0.01987, allocations: 11.92 kB / 336.4 MB, free: 4.371 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002514/0.02012, allocations: 39.83 kB / 336.5 MB, free: 4.332 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.949e-05/0.02015, allocations: 16 kB / 336.5 MB, free: 4.316 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.0002193/0.02037, allocations: 167.7 kB / 336.6 MB, free: 4.141 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.848e-05/0.02044, allocations: 35.81 kB / 336.7 MB, free: 4.105 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006965/0.02113, allocations: 317.3 kB / 337 MB, free: 3.789 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.854e-06/0.02114, allocations: 7.938 kB / 337 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.331e-06/0.02115, allocations: 0 / 337 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.112e-06/0.02115, allocations: 0 / 337 MB, free: 3.781 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003294/0.02148, allocations: 253.1 kB / 337.2 MB, free: 3.504 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.84e-06/0.02149, allocations: 4 kB / 337.2 MB, free: 3.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002155/0.0217, allocations: 39.97 kB / 337.3 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.085e-06/0.02171, allocations: 0 / 337.3 MB, free: 3.461 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.604e-05/0.02174, allocations: 11.98 kB / 337.3 MB, free: 3.449 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.482e-06/0.02174, allocations: 4 kB / 337.3 MB, free: 3.445 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.246e-06/0.02175, allocations: 3.938 kB / 337.3 MB, free: 3.441 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009407/0.02269, allocations: 458.9 kB / 337.7 MB, free: 2.973 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.411e-05/0.02277, allocations: 35.69 kB / 337.8 MB, free: 2.938 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.587e-05/0.02283, allocations: 8.062 kB / 337.8 MB, free: 2.93 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001709/0.023, allocations: 19.97 kB / 337.8 MB, free: 2.91 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.159e-05/0.02309, allocations: 39.83 kB / 337.8 MB, free: 2.871 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.36e-05/0.02311, allocations: 11.98 kB / 337.9 MB, free: 2.859 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0002471/0.02336, allocations: 227.1 kB / 338.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.02336, allocations: 0 / 338.1 MB, free: 2.641 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0004348/0.02379, allocations: 67.89 kB / 338.1 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 0.0001636/0.02396, allocations: 119.2 kB / 338.3 MB, free: 2.449 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0009001/0.02486, allocations: 333.5 kB / 338.6 MB, free: 2.105 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.666e-06/0.02486, allocations: 4.25 kB / 338.6 MB, free: 2.102 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002554/0.02512, allocations: 136 kB / 338.7 MB, free: 1.969 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003886/0.02551, allocations: 53.11 kB / 338.8 MB, free: 1.914 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001201/0.02671, allocations: 0.6141 MB / 339.4 MB, free: 1.27 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001737/0.02688, allocations: 189.3 kB / 339.6 MB, free: 1.055 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001118/0.02699, allocations: 40.48 kB / 339.6 MB, free: 1.016 MB / 298.7 MB Notification: Performance of SimCode: time 1.162e-06/0.02699, allocations: 0 / 339.6 MB, free: 1.016 MB / 298.7 MB Notification: Performance of Templates: time 0.006887/0.03388, allocations: 4.464 MB / 344.1 MB, free: 12.56 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemoSignalCharacteristic.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.901518655009568]