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.001396/0.001396, allocations: 84 kB / 20.68 MB, free: 1.023 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.001796/0.001796, allocations: 164 kB / 23.95 MB, free: 4.156 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.506/1.506, allocations: 177.1 MB / 204.3 MB, free: 9.176 MB / 190.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.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.335e-06/2.335e-06, allocations: 0 / 325 MB, free: 0.5469 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.853e-05/4.087e-05, allocations: 2.281 kB / 325.1 MB, free: 0.543 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003538/0.003579, allocations: 1.7 MB / 326.8 MB, free: 15.37 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001709/0.005288, allocations: 0.633 MB / 327.4 MB, free: 14.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.572e-05/0.005384, allocations: 10.06 kB / 327.4 MB, free: 14.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001415/0.005525, allocations: 14.67 kB / 327.4 MB, free: 14.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 5.881e-05/0.005584, allocations: 16.02 kB / 327.4 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003937/0.005978, allocations: 92.94 kB / 327.5 MB, free: 14.86 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002653/0.006243, allocations: 152.2 kB / 327.7 MB, free: 14.79 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001366/0.00638, allocations: 17.59 kB / 327.7 MB, free: 14.78 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002493/0.006629, allocations: 99.88 kB / 327.8 MB, free: 14.73 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000123/0.006752, allocations: 53.48 kB / 327.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.415e-05/0.006786, allocations: 15.81 kB / 327.8 MB, free: 14.71 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.994e-05/0.006856, allocations: 21.92 kB / 327.9 MB, free: 14.7 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.841e-05/0.006904, allocations: 37.02 kB / 327.9 MB, free: 14.68 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.821e-05/0.006983, allocations: 42.12 kB / 327.9 MB, free: 14.66 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002895/0.007272, allocations: 147.1 kB / 328.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.588e-06/0.007277, allocations: 0 / 328.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.007278, allocations: 0 / 328.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.007284, allocations: 5.406 kB / 328.1 MB, free: 14.59 MB / 302.1 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.0008869/0.00817, allocations: 412.7 kB / 328.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.057e-05/0.008221, allocations: 9.906 kB / 328.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002811/0.008502, allocations: 37.5 kB / 328.5 MB, free: 14.21 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003727/0.008875, allocations: 158.8 kB / 328.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.386e-05/0.008909, allocations: 10.38 kB / 328.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.148e-05/0.00895, allocations: 10.86 kB / 328.7 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005158/0.009466, allocations: 163.8 kB / 328.9 MB, free: 13.99 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.549e-05/0.009481, allocations: 7.938 kB / 328.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.033e-05/0.009502, allocations: 1.766 kB / 328.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.843e-06/0.009509, allocations: 2.797 kB / 328.9 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003998/0.009908, allocations: 99.31 kB / 329 MB, free: 13.96 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007955/0.0107, allocations: 336.8 kB / 329.3 MB, free: 13.71 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006983/0.0114, allocations: 181.8 kB / 329.5 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003298/0.01173, allocations: 91.11 kB / 329.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.386e-05/0.01176, allocations: 1.156 kB / 329.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005237/0.01228, allocations: 178.5 kB / 329.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.873e-06/0.01228, allocations: 0 / 329.8 MB, free: 13.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.001289/0.01357, allocations: 354.4 kB / 330.1 MB, free: 13.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.123e-05/0.01364, allocations: 59.7 kB / 330.2 MB, free: 13.38 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001747/0.01382, allocations: 150.8 kB / 330.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.501e-05/0.01386, allocations: 36.06 kB / 330.3 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.688e-05/0.01395, allocations: 101 kB / 330.4 MB, free: 13.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.989e-05/0.01401, allocations: 41.5 kB / 330.5 MB, free: 13.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.404e-05/0.01409, allocations: 46.42 kB / 330.5 MB, free: 13.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001949/0.01429, allocations: 330.8 kB / 330.9 MB, free: 12.72 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001319/0.01442, allocations: 50.12 kB / 330.9 MB, free: 12.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001868/0.01461, allocations: 109.7 kB / 331 MB, free: 12.59 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003345/0.01494, allocations: 176.5 kB / 331.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.53e-06/0.01495, allocations: 1.156 kB / 331.2 MB, free: 12.45 MB / 302.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000494/0.01544, allocations: 202.7 kB / 331.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.958e-05/0.01547, allocations: 10.86 kB / 331.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.067e-05/0.01548, allocations: 5.219 kB / 331.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.237e-05/0.01551, allocations: 3.25 kB / 331.4 MB, free: 12.34 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002261/0.01574, allocations: 30.95 kB / 331.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.815e-05/0.01576, allocations: 7.844 kB / 331.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.01587, allocations: 27.22 kB / 331.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.359e-05/0.01589, allocations: 10.66 kB / 331.5 MB, free: 12.3 MB / 302.1 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.0001786/0.01607, allocations: 138.5 kB / 331.6 MB, free: 12.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.816e-05/0.01611, allocations: 17.5 kB / 331.6 MB, free: 12.16 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000877/0.01699, allocations: 282 kB / 331.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.58e-06/0.01699, allocations: 1.188 kB / 331.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.091e-06/0.017, allocations: 3.938 kB / 331.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.101e-06/0.017, allocations: 1.656 kB / 331.9 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001162/0.01817, allocations: 0.5051 MB / 332.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.094e-06/0.01817, allocations: 0 / 332.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001063/0.01827, allocations: 15.89 kB / 332.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.407e-06/0.01828, allocations: 1.062 kB / 332.4 MB, free: 11.63 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.873e-05/0.01831, allocations: 10.08 kB / 332.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.645e-06/0.01831, allocations: 1.031 kB / 332.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.467e-06/0.01831, allocations: 3.938 kB / 332.4 MB, free: 11.62 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001194/0.01951, allocations: 476.8 kB / 332.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.236e-05/0.01953, allocations: 12.19 kB / 332.9 MB, free: 11.33 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.312e-05/0.01958, allocations: 12.36 kB / 332.9 MB, free: 11.32 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002034/0.01978, allocations: 28.97 kB / 333 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.038e-05/0.01987, allocations: 20.14 kB / 333 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.286e-05/0.01989, allocations: 8.547 kB / 333 MB, free: 11.29 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.676e-05/0.01997, allocations: 110 kB / 333.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 7e-08/0.01998, allocations: 1.062 kB / 333.1 MB, free: 11.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003398/0.02031, allocations: 31.19 kB / 333.1 MB, free: 11.19 MB / 302.1 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.0001698/0.02048, allocations: 100.9 kB / 333.2 MB, free: 11.1 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0005151/0.021, allocations: 163.4 kB / 333.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.021, allocations: 0 / 333.4 MB, free: 11.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002913/0.02129, allocations: 92.05 kB / 333.5 MB, free: 10.99 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002608/0.02155, allocations: 11.19 kB / 333.5 MB, free: 10.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009608/0.02251, allocations: 318.1 kB / 333.8 MB, free: 10.74 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.02265, allocations: 98.33 kB / 333.9 MB, free: 10.65 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.452e-05/0.02271, allocations: 13.58 kB / 333.9 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.376e-05/0.02277, allocations: 18.86 kB / 333.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of SimCode: time 9.62e-07/0.02277, allocations: 1.344 kB / 333.9 MB, free: 10.63 MB / 302.1 MB Notification: Performance of Templates: time 0.005339/0.02811, allocations: 1.252 MB / 335.2 MB, free: 9.988 MB / 302.1 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.792133405804634]