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.002453/0.002453, allocations: 95.61 kB / 20.96 MB, free: 3.457 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.002856/0.002856, allocations: 161.3 kB / 24.27 MB, free: 152 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.59/1.59, allocations: 177.1 MB / 204.6 MB, free: 5.578 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 2.345e-06/2.345e-06, allocations: 0 / 272.3 MB, free: 1.828 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.707e-05/3.942e-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.003381/0.003421, allocations: 1.726 MB / 274 MB, free: 92 kB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.004839, allocations: 0.6349 MB / 274.7 MB, free: 15.45 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.427e-05/0.004933, allocations: 11.94 kB / 274.7 MB, free: 15.44 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001383/0.005072, allocations: 11.88 kB / 274.7 MB, free: 15.43 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 5.858e-05/0.00513, allocations: 23.72 kB / 274.7 MB, free: 15.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003457/0.005476, allocations: 87.64 kB / 274.8 MB, free: 15.32 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000236/0.005712, allocations: 155.5 kB / 274.9 MB, free: 15.16 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002032/0.005915, allocations: 25.61 kB / 275 MB, free: 15.14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002148/0.00613, allocations: 91.78 kB / 275.1 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001053/0.006235, allocations: 47.86 kB / 275.1 MB, free: 15 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 3.276e-05/0.006268, allocations: 16 kB / 275.1 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.71e-05/0.006345, allocations: 20 kB / 275.1 MB, free: 14.96 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 4.709e-05/0.006392, allocations: 35.89 kB / 275.2 MB, free: 14.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.078e-05/0.006463, allocations: 47.81 kB / 275.2 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002408/0.006704, allocations: 147.5 kB / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.336e-06/0.006707, allocations: 0 / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.006709, allocations: 0 / 275.4 MB, free: 14.74 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.729e-06/0.006713, allocations: 0 / 275.4 MB, free: 14.74 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.0007535/0.007467, allocations: 0.5109 MB / 275.9 MB, free: 14.18 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.007505, allocations: 12.02 kB / 275.9 MB, free: 14.17 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002381/0.007743, allocations: 44.77 kB / 275.9 MB, free: 14.12 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002645/0.008008, allocations: 157 kB / 276.1 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.174e-05/0.00804, allocations: 8.375 kB / 276.1 MB, free: 13.94 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.057e-05/0.00808, allocations: 16.36 kB / 276.1 MB, free: 13.92 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004065/0.008487, allocations: 142.1 kB / 276.3 MB, free: 13.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.553e-05/0.008502, allocations: 3.938 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.827e-05/0.00852, allocations: 4 kB / 276.3 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.955e-06/0.008528, allocations: 7.938 kB / 276.3 MB, free: 13.76 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002854/0.008814, allocations: 79.88 kB / 276.3 MB, free: 13.68 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008107/0.009624, allocations: 399.5 kB / 276.7 MB, free: 13.26 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005037/0.01013, allocations: 166.9 kB / 276.9 MB, free: 13.08 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002552/0.01038, allocations: 75.62 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.253e-05/0.01042, allocations: 4 kB / 277 MB, free: 13 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004055/0.01082, allocations: 153 kB / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.694e-06/0.01082, allocations: 0 / 277.1 MB, free: 12.84 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0009476/0.01177, allocations: 301.3 kB / 277.4 MB, free: 12.54 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.007e-05/0.01184, allocations: 63.39 kB / 277.5 MB, free: 12.46 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002077/0.01205, allocations: 212.9 kB / 277.7 MB, free: 12.24 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.694e-05/0.01209, allocations: 33.7 kB / 277.7 MB, free: 12.2 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001399/0.01223, allocations: 155.3 kB / 277.9 MB, free: 12.04 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.806e-05/0.01229, allocations: 47.62 kB / 277.9 MB, free: 12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001018/0.0124, allocations: 59.36 kB / 278 MB, free: 11.93 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002942/0.01269, allocations: 0.5117 MB / 278.5 MB, free: 11.41 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001169/0.01281, allocations: 35.98 kB / 278.5 MB, free: 11.37 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002302/0.01304, allocations: 145.4 kB / 278.7 MB, free: 11.19 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003676/0.0134, allocations: 196.7 kB / 278.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.01341, allocations: 0 / 278.9 MB, free: 10.95 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004318/0.01384, allocations: 213.2 kB / 279.1 MB, free: 10.74 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.01386, allocations: 8 kB / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.456e-06/0.01387, allocations: 288 / 279.1 MB, free: 10.73 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.694e-05/0.0139, allocations: 11.98 kB / 279.1 MB, free: 10.72 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002395/0.01414, allocations: 43.92 kB / 279.1 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.514e-05/0.01415, allocations: 7.938 kB / 279.1 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001058/0.01426, allocations: 23.88 kB / 279.2 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.082e-05/0.01428, allocations: 11.94 kB / 279.2 MB, free: 10.63 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.0001885/0.01447, allocations: 182.5 kB / 279.4 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.389e-05/0.01451, allocations: 19.89 kB / 279.4 MB, free: 10.42 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006803/0.01519, allocations: 242.3 kB / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.808e-06/0.01519, allocations: 0 / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.328e-06/0.0152, allocations: 0 / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.049e-06/0.0152, allocations: 0 / 279.6 MB, free: 10.18 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.01623, allocations: 0.5352 MB / 280.1 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.565e-06/0.01623, allocations: 0 / 280.1 MB, free: 9.605 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001021/0.01633, allocations: 8 kB / 280.2 MB, free: 9.598 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.706e-06/0.01633, allocations: 8 kB / 280.2 MB, free: 9.59 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.455e-05/0.01636, allocations: 7.984 kB / 280.2 MB, free: 9.582 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.19e-06/0.01636, allocations: 4 kB / 280.2 MB, free: 9.578 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.01637, allocations: 3.938 kB / 280.2 MB, free: 9.574 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00102/0.01739, allocations: 473.5 kB / 280.6 MB, free: 9.094 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.555e-05/0.01742, allocations: 19.88 kB / 280.7 MB, free: 9.074 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.851e-05/0.01746, allocations: 11.98 kB / 280.7 MB, free: 9.062 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000147/0.01761, allocations: 15.98 kB / 280.7 MB, free: 9.047 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.465e-05/0.01769, allocations: 15.86 kB / 280.7 MB, free: 9.031 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.469e-05/0.01771, allocations: 11.98 kB / 280.7 MB, free: 9.02 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001356/0.01785, allocations: 154.2 kB / 280.9 MB, free: 8.871 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01785, allocations: 0 / 280.9 MB, free: 8.871 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0003336/0.01818, allocations: 31.98 kB / 280.9 MB, free: 8.84 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.0002059/0.01839, allocations: 109.2 kB / 281 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0004551/0.01884, allocations: 163.4 kB / 281.2 MB, free: 8.562 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.01884, allocations: 0 / 281.2 MB, free: 8.562 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002417/0.01908, allocations: 87.58 kB / 281.2 MB, free: 8.473 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002508/0.01933, allocations: 18.8 kB / 281.3 MB, free: 8.457 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007992/0.02013, allocations: 315.4 kB / 281.6 MB, free: 8.121 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001008/0.02023, allocations: 89.81 kB / 281.7 MB, free: 8.016 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 5.445e-05/0.02029, allocations: 17.14 kB / 281.7 MB, free: 7.996 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.005e-05/0.02034, allocations: 16.5 kB / 281.7 MB, free: 7.98 MB / 266.7 MB Notification: Performance of SimCode: time 5.11e-07/0.02034, allocations: 0 / 281.7 MB, free: 7.98 MB / 266.7 MB Notification: Performance of Templates: time 0.004892/0.02523, allocations: 1.261 MB / 283 MB, free: 6.738 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 240] 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.966410499997437]