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.0009225/0.0009225, allocations: 87.62 kB / 21.44 MB, free: 3.129 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.005749/0.005749, allocations: 160.4 kB / 24.7 MB, free: 9.43 MB / 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 0.932/0.932, allocations: 177.1 MB / 205 MB, free: 5.742 MB / 186.7 MB " [Timeout remaining time 179] 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.354e-06/2.354e-06, allocations: 0 / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.738e-05/3.973e-05, allocations: 4.672 kB / 325.8 MB, free: 15.43 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002882/0.002922, allocations: 1.699 MB / 327.5 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.003949, allocations: 0.6349 MB / 328.1 MB, free: 13.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001056/0.004055, allocations: 7.938 kB / 328.2 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001529/0.004208, allocations: 11.88 kB / 328.2 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 4.031e-05/0.004248, allocations: 23.72 kB / 328.2 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003698/0.004618, allocations: 87.69 kB / 328.3 MB, free: 12.95 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002044/0.004822, allocations: 155.5 kB / 328.4 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.004988, allocations: 21.62 kB / 328.5 MB, free: 12.77 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002485/0.005237, allocations: 103.8 kB / 328.6 MB, free: 12.67 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.229e-05/0.005329, allocations: 39.88 kB / 328.6 MB, free: 12.63 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.631e-05/0.005356, allocations: 16 kB / 328.6 MB, free: 12.62 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.528e-05/0.005421, allocations: 23.98 kB / 328.6 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.681e-05/0.005458, allocations: 35.89 kB / 328.7 MB, free: 12.56 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.379e-05/0.005511, allocations: 43.83 kB / 328.7 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002219/0.005733, allocations: 143.6 kB / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.00574, allocations: 0 / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.954e-06/0.005742, allocations: 0 / 328.8 MB, free: 12.38 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.41e-06/0.005747, allocations: 0 / 328.8 MB, free: 12.38 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: 18 * Number of variables: 18 Notification: Performance of Generate backend data structure: time 0.001131/0.006878, allocations: 432 kB / 329.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.389e-05/0.006942, allocations: 8.031 kB / 329.3 MB, free: 11.91 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002044/0.007146, allocations: 32.83 kB / 329.3 MB, free: 11.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.007471, allocations: 150.1 kB / 329.5 MB, free: 11.7 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.933e-05/0.0075, allocations: 12.38 kB / 329.5 MB, free: 11.69 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.486e-05/0.007535, allocations: 16.38 kB / 329.5 MB, free: 11.68 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003213/0.007857, allocations: 166 kB / 329.6 MB, free: 11.51 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.361e-05/0.00787, allocations: 3.938 kB / 329.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.167e-05/0.007892, allocations: 7.938 kB / 329.7 MB, free: 11.5 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.0079, allocations: 7.938 kB / 329.7 MB, free: 11.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001915/0.008091, allocations: 95.91 kB / 329.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005733/0.008665, allocations: 336.2 kB / 330.1 MB, free: 11.04 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003729/0.009038, allocations: 182.4 kB / 330.3 MB, free: 10.85 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001591/0.009197, allocations: 92.72 kB / 330.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.62e-05/0.009223, allocations: 4 kB / 330.4 MB, free: 10.75 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003081/0.009531, allocations: 167.2 kB / 330.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.512e-06/0.009532, allocations: 4 kB / 330.5 MB, free: 10.57 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006665/0.0102, allocations: 355.9 kB / 330.9 MB, free: 10.22 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.407e-05/0.01025, allocations: 59.39 kB / 330.9 MB, free: 10.15 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001242/0.01038, allocations: 145 kB / 331.1 MB, free: 10 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.925e-05/0.0104, allocations: 33.7 kB / 331.1 MB, free: 9.961 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.921e-05/0.01047, allocations: 112.5 kB / 331.2 MB, free: 9.848 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.227e-05/0.01051, allocations: 39.69 kB / 331.3 MB, free: 9.809 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.253e-05/0.01057, allocations: 45.7 kB / 331.3 MB, free: 9.758 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001153/0.01069, allocations: 330.8 kB / 331.6 MB, free: 9.426 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.107e-05/0.01077, allocations: 39.97 kB / 331.7 MB, free: 9.387 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001189/0.01089, allocations: 120.5 kB / 331.8 MB, free: 9.238 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001995/0.01109, allocations: 176.4 kB / 332 MB, free: 9.035 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.007e-06/0.01109, allocations: 4 kB / 332 MB, free: 9.031 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002553/0.01134, allocations: 197.3 kB / 332.1 MB, free: 8.832 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.478e-05/0.01137, allocations: 8 kB / 332.2 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.057e-06/0.01138, allocations: 0 / 332.2 MB, free: 8.824 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.657e-05/0.01141, allocations: 8.266 kB / 332.2 MB, free: 8.816 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001402/0.01155, allocations: 43.92 kB / 332.2 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.517e-06/0.01155, allocations: 0 / 332.2 MB, free: 8.773 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.281e-05/0.01161, allocations: 19.88 kB / 332.2 MB, free: 8.754 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.929e-05/0.01163, allocations: 15.94 kB / 332.2 MB, free: 8.738 MB / 298.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.0001336/0.01176, allocations: 135.8 kB / 332.4 MB, free: 8.594 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.43e-05/0.01178, allocations: 11.91 kB / 332.4 MB, free: 8.582 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004662/0.01225, allocations: 282.2 kB / 332.7 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.75e-06/0.01226, allocations: 0 / 332.7 MB, free: 8.305 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.385e-06/0.01227, allocations: 4 kB / 332.7 MB, free: 8.301 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.063e-06/0.01227, allocations: 3.984 kB / 332.7 MB, free: 8.297 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006534/0.01293, allocations: 0.5046 MB / 333.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.379e-06/0.01293, allocations: 0 / 333.2 MB, free: 7.758 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.452e-05/0.01301, allocations: 19.98 kB / 333.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.012e-06/0.01302, allocations: 0 / 333.2 MB, free: 7.738 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.587e-05/0.01304, allocations: 7.922 kB / 333.2 MB, free: 7.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.516e-06/0.01304, allocations: 4 kB / 333.2 MB, free: 7.727 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.529e-06/0.01304, allocations: 7.938 kB / 333.2 MB, free: 7.719 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006382/0.01368, allocations: 471.2 kB / 333.7 MB, free: 7.242 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.497e-05/0.01371, allocations: 11.94 kB / 333.7 MB, free: 7.23 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.825e-05/0.01374, allocations: 11.94 kB / 333.7 MB, free: 7.219 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.692e-05/0.01383, allocations: 35.95 kB / 333.7 MB, free: 7.184 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.11e-05/0.01389, allocations: 15.86 kB / 333.7 MB, free: 7.168 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.638e-05/0.01391, allocations: 11.98 kB / 333.8 MB, free: 7.156 MB / 298.7 MB Notification: Performance of sorting global known variables: time 6.192e-05/0.01397, allocations: 106.6 kB / 333.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01397, allocations: 0 / 333.9 MB, free: 7.055 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002199/0.01419, allocations: 35.92 kB / 333.9 MB, free: 7.02 MB / 298.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.0001631/0.01436, allocations: 107.9 kB / 334 MB, free: 6.902 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0003329/0.01469, allocations: 159.8 kB / 334.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.036e-06/0.01469, allocations: 0 / 334.2 MB, free: 6.746 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001463/0.01484, allocations: 84.5 kB / 334.2 MB, free: 6.664 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001971/0.01503, allocations: 16.25 kB / 334.3 MB, free: 6.648 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007649/0.0158, allocations: 340.3 kB / 334.6 MB, free: 6.285 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.122e-05/0.01588, allocations: 97.67 kB / 334.7 MB, free: 6.168 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.885e-05/0.01593, allocations: 20.48 kB / 334.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of SimCode: time 9.02e-07/0.01593, allocations: 0 / 334.7 MB, free: 6.148 MB / 298.7 MB Notification: Performance of Templates: time 0.003927/0.01986, allocations: 1.7 MB / 336.4 MB, free: 4.449 MB / 298.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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.07150729931891]