Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.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.001358/0.001358, allocations: 88.31 kB / 20.96 MB, free: 3.473 MB / 18.57 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.001466/0.001466, allocations: 161.7 kB / 24.27 MB, free: 168 kB / 18.57 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.531/1.531, allocations: 177.2 MB / 204.6 MB, free: 5.586 MB / 186.7 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.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=150000,variableFilter="time|signalExtrema1.y_min|signalExtrema1.y_max|signalExtrema1.t_min|signalExtrema1.t_max|signalExtrema2.y_min|signalExtrema2.y_max|signalExtrema2.t_min|signalExtrema2.t_max",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema") translateModel(Modelica.Blocks.Examples.DemonstrateSignalExtrema,tolerance=1e-06,outputFormat="mat",numberOfIntervals=150000,variableFilter="time|signalExtrema1.y_min|signalExtrema1.y_max|signalExtrema1.t_min|signalExtrema1.t_max|signalExtrema2.y_min|signalExtrema2.y_max|signalExtrema2.t_min|signalExtrema2.t_max",fileNamePrefix="Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 4.671e-05/4.842e-05, allocations: 2.312 kB / 272.3 MB, free: 1.824 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003567/0.003615, allocations: 1.706 MB / 274 MB, free: 112 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001417/0.005032, allocations: 0.6232 MB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001137/0.005145, allocations: 3.938 kB / 274.6 MB, free: 15.48 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001435/0.005289, allocations: 15.88 kB / 274.7 MB, free: 15.46 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 7.581e-05/0.005365, allocations: 27.72 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004087/0.005773, allocations: 91.62 kB / 274.8 MB, free: 15.34 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002924/0.006066, allocations: 151.5 kB / 274.9 MB, free: 15.2 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001291/0.006195, allocations: 21.62 kB / 274.9 MB, free: 15.17 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002643/0.006459, allocations: 99.77 kB / 275 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000131/0.00659, allocations: 39.88 kB / 275.1 MB, free: 15.04 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.517e-05/0.006625, allocations: 12 kB / 275.1 MB, free: 15.02 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.609e-05/0.006712, allocations: 31.97 kB / 275.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 5.526e-05/0.006767, allocations: 27.91 kB / 275.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 8.698e-05/0.006854, allocations: 47.83 kB / 275.2 MB, free: 14.92 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003219/0.007176, allocations: 151.5 kB / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.779e-06/0.00718, allocations: 0 / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.72e-07/0.007181, allocations: 0 / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.867e-06/0.00719, allocations: 0 / 275.3 MB, free: 14.77 MB / 266.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001052/0.008242, allocations: 413.2 kB / 275.7 MB, free: 14.32 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.388e-05/0.008286, allocations: 12.03 kB / 275.8 MB, free: 14.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003155/0.008602, allocations: 44.81 kB / 275.8 MB, free: 14.27 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003659/0.008967, allocations: 158.1 kB / 276 MB, free: 14.09 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.179e-05/0.008999, allocations: 8.375 kB / 276 MB, free: 14.08 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.382e-05/0.009043, allocations: 12.38 kB / 276 MB, free: 14.07 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005172/0.00956, allocations: 162.1 kB / 276.1 MB, free: 13.91 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.19e-05/0.009572, allocations: 3.938 kB / 276.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.368e-05/0.009596, allocations: 3.984 kB / 276.1 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.009607, allocations: 7.938 kB / 276.2 MB, free: 13.89 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000412/0.01002, allocations: 103.8 kB / 276.3 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007358/0.01075, allocations: 332.2 kB / 276.6 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006336/0.01139, allocations: 190.4 kB / 276.8 MB, free: 13.24 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002944/0.01168, allocations: 88.78 kB / 276.8 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.944e-05/0.0117, allocations: 0 / 276.8 MB, free: 13.15 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004679/0.01217, allocations: 171.3 kB / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.553e-06/0.01217, allocations: 0 / 277 MB, free: 12.97 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.001127/0.0133, allocations: 357.2 kB / 277.4 MB, free: 12.61 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.898e-05/0.01336, allocations: 55.41 kB / 277.4 MB, free: 12.55 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001565/0.01351, allocations: 149.2 kB / 277.6 MB, free: 12.39 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.286e-05/0.01355, allocations: 33.7 kB / 277.6 MB, free: 12.36 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.054e-05/0.01363, allocations: 100.6 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 5.612e-05/0.01368, allocations: 43.64 kB / 277.7 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000107/0.01379, allocations: 49.69 kB / 277.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002331/0.01402, allocations: 330.8 kB / 278.1 MB, free: 11.82 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001434/0.01417, allocations: 47.97 kB / 278.2 MB, free: 11.78 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002364/0.0144, allocations: 113.2 kB / 278.3 MB, free: 11.64 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003819/0.01478, allocations: 172.4 kB / 278.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.715e-06/0.01479, allocations: 0 / 278.4 MB, free: 11.44 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004928/0.01528, allocations: 225.4 kB / 278.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.01531, allocations: 4 kB / 278.7 MB, free: 11.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.075e-05/0.01532, allocations: 4 kB / 278.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.938e-05/0.01536, allocations: 4 kB / 278.7 MB, free: 11.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002167/0.01557, allocations: 35.92 kB / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.372e-05/0.01559, allocations: 7.984 kB / 278.7 MB, free: 11.16 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001386/0.01572, allocations: 23.83 kB / 278.7 MB, free: 11.13 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.442e-05/0.01576, allocations: 11.94 kB / 278.7 MB, free: 11.12 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 10 * Number of states: 0 () * Number of discrete variables: 18 (signalExtrema2.t_max,$PRE.signalExtrema2.t_max,signalExtrema2.t_min,$PRE.signalExtrema2.t_min,signalExtrema1.t_max,$PRE.signalExtrema1.t_max,signalExtrema1.t_min,$PRE.signalExtrema1.t_min,$whenCondition2,$whenCondition1,signalExtrema2.y_max,$PRE.signalExtrema2.y_max,signalExtrema2.y_min,$PRE.signalExtrema2.y_min,signalExtrema1.y_max,$PRE.signalExtrema1.y_max,signalExtrema1.y_min,$PRE.signalExtrema1.y_min) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * 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.0001953/0.01595, allocations: 135.9 kB / 278.9 MB, free: 10.98 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.617e-05/0.016, allocations: 19.91 kB / 278.9 MB, free: 10.96 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00083/0.01683, allocations: 285.9 kB / 279.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.409e-06/0.01684, allocations: 0 / 279.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.01684, allocations: 0 / 279.2 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.428e-06/0.01684, allocations: 4 kB / 279.2 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001057/0.0179, allocations: 0.5135 MB / 279.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-06/0.0179, allocations: 0 / 279.7 MB, free: 10.12 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001066/0.01801, allocations: 15.98 kB / 279.7 MB, free: 10.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.01802, allocations: 4 kB / 279.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.716e-05/0.01803, allocations: 0 / 279.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.619e-06/0.01804, allocations: 4 kB / 279.7 MB, free: 10.1 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.617e-06/0.01804, allocations: 3.938 kB / 279.7 MB, free: 10.09 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001166/0.01921, allocations: 485 kB / 280.2 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.532e-05/0.01923, allocations: 11.94 kB / 280.2 MB, free: 9.594 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.366e-05/0.01928, allocations: 8 kB / 280.2 MB, free: 9.586 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002049/0.01948, allocations: 27.95 kB / 280.2 MB, free: 9.559 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.691e-05/0.01957, allocations: 23.8 kB / 280.3 MB, free: 9.535 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.416e-05/0.01959, allocations: 16.05 kB / 280.3 MB, free: 9.52 MB / 266.7 MB Notification: Performance of sorting global known variables: time 9.452e-05/0.01969, allocations: 103.3 kB / 280.4 MB, free: 9.418 MB / 266.7 MB Notification: Performance of sort global known variables: time 7e-08/0.01969, allocations: 0 / 280.4 MB, free: 9.418 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003185/0.02, allocations: 28 kB / 280.4 MB, free: 9.391 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (sine.phi) * Number of discrete variables: 10 ($whenCondition2,$whenCondition1,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_min,signalExtrema1.t_max,signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_min,signalExtrema2.t_max) * Number of discrete states: 8 (signalExtrema2.y_min,signalExtrema2.y_max,signalExtrema2.t_max,signalExtrema2.t_min,signalExtrema1.y_min,signalExtrema1.y_max,signalExtrema1.t_max,signalExtrema1.t_min) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.0001779/0.02018, allocations: 108.2 kB / 280.5 MB, free: 9.281 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004957/0.02068, allocations: 167.7 kB / 280.7 MB, free: 9.117 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.804e-06/0.02068, allocations: 0 / 280.7 MB, free: 9.117 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002668/0.02095, allocations: 83.88 kB / 280.8 MB, free: 9.035 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002661/0.02121, allocations: 19.98 kB / 280.8 MB, free: 9.016 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008351/0.02205, allocations: 325.2 kB / 281.1 MB, free: 8.676 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001007/0.02215, allocations: 93.81 kB / 281.2 MB, free: 8.566 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.148e-05/0.0222, allocations: 17.14 kB / 281.2 MB, free: 8.547 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.545e-05/0.02226, allocations: 20.48 kB / 281.2 MB, free: 8.527 MB / 266.7 MB Notification: Performance of SimCode: time 4.11e-07/0.02226, allocations: 0 / 281.2 MB, free: 8.527 MB / 266.7 MB Notification: Performance of Templates: time 0.004881/0.02714, allocations: 1.246 MB / 282.5 MB, free: 7.293 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 5.984907509060577]