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.001008/0.001008, allocations: 81.97 kB / 22.21 MB, free: 2.285 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.0009435/0.0009435, allocations: 161.5 kB / 25.61 MB, free: 8.578 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.9513/0.9513, allocations: 177.1 MB / 206 MB, free: 4.52 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 1.423e-06/1.423e-06, allocations: 0 / 274.2 MB, free: 4.453 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.963e-05/2.105e-05, allocations: 2.312 kB / 274.2 MB, free: 4.449 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002265/0.002286, allocations: 1.739 MB / 275.9 MB, free: 2.715 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009282/0.003215, allocations: 0.6452 MB / 276.6 MB, free: 2.066 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.2e-05/0.003307, allocations: 8.438 kB / 276.6 MB, free: 2.059 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.003432, allocations: 11.81 kB / 276.6 MB, free: 2.047 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 4.014e-05/0.003472, allocations: 17.23 kB / 276.6 MB, free: 2.031 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.003752, allocations: 87.69 kB / 276.7 MB, free: 1.945 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001588/0.00391, allocations: 157.5 kB / 276.8 MB, free: 1.793 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.004026, allocations: 21.62 kB / 276.9 MB, free: 1.766 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001888/0.004215, allocations: 103.7 kB / 277 MB, free: 1.664 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.824e-05/0.004303, allocations: 51.86 kB / 277 MB, free: 1.613 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 2.341e-05/0.004326, allocations: 12.66 kB / 277 MB, free: 1.602 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.925e-05/0.004386, allocations: 16 kB / 277 MB, free: 1.586 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 3.317e-05/0.004419, allocations: 38.3 kB / 277.1 MB, free: 1.551 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.374e-05/0.004463, allocations: 43.89 kB / 277.1 MB, free: 1.508 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000163/0.004625, allocations: 111.5 kB / 277.2 MB, free: 1.398 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.978e-06/0.004629, allocations: 4 kB / 277.2 MB, free: 1.395 MB / 250.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.004632, allocations: 3.984 kB / 277.2 MB, free: 1.391 MB / 250.7 MB Notification: Performance of Transformations before backend: time 6.142e-06/0.004638, allocations: 4 kB / 277.2 MB, free: 1.387 MB / 250.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.0005317/0.005169, allocations: 0.5073 MB / 277.7 MB, free: 0.832 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.773e-05/0.005207, allocations: 12.03 kB / 277.8 MB, free: 0.8203 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001579/0.005365, allocations: 40.77 kB / 277.8 MB, free: 0.7812 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001744/0.005539, allocations: 159 kB / 278 MB, free: 0.6016 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.297e-05/0.005562, allocations: 8.375 kB / 278 MB, free: 0.5938 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.614e-05/0.005589, allocations: 16.38 kB / 278 MB, free: 0.5781 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001816/0.00577, allocations: 118.8 kB / 278.1 MB, free: 464 kB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.005781, allocations: 3.938 kB / 278.1 MB, free: 460 kB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.107e-05/0.005792, allocations: 8 kB / 278.1 MB, free: 452 kB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.07e-06/0.005797, allocations: 0 / 278.1 MB, free: 452 kB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.794e-05/0.005845, allocations: 23.92 kB / 278.1 MB, free: 428 kB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004301/0.006275, allocations: 368.1 kB / 278.5 MB, free: 32 kB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.006433, allocations: 78.91 kB / 278.6 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.554e-05/0.006479, allocations: 39.64 kB / 278.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.334e-05/0.006492, allocations: 0 / 278.6 MB, free: 15.9 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001476/0.00664, allocations: 113 kB / 278.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.006641, allocations: 0 / 278.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0002903/0.006931, allocations: 177.4 kB / 278.9 MB, free: 15.59 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.861e-05/0.00697, allocations: 59.39 kB / 278.9 MB, free: 15.52 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.526e-05/0.007065, allocations: 201.8 kB / 279.1 MB, free: 15.31 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.719e-05/0.007082, allocations: 33.7 kB / 279.2 MB, free: 15.27 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.603e-05/0.007138, allocations: 151.2 kB / 279.3 MB, free: 15.12 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.459e-05/0.007173, allocations: 43.66 kB / 279.4 MB, free: 15.07 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.044e-05/0.007223, allocations: 55.33 kB / 279.4 MB, free: 15.01 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001265/0.00735, allocations: 0.5 MB / 279.9 MB, free: 14.5 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.237e-05/0.007382, allocations: 23.92 kB / 279.9 MB, free: 14.48 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.417e-05/0.007456, allocations: 116.8 kB / 280.1 MB, free: 14.32 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001141/0.00757, allocations: 144.7 kB / 280.2 MB, free: 14.14 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.825e-06/0.007573, allocations: 4 kB / 280.2 MB, free: 14.13 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0001661/0.007739, allocations: 153.4 kB / 280.3 MB, free: 13.98 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.445e-05/0.007754, allocations: 6.344 kB / 280.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.883e-06/0.007761, allocations: 4 kB / 280.4 MB, free: 13.97 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.112e-05/0.007772, allocations: 4 kB / 280.4 MB, free: 13.96 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001186/0.00789, allocations: 51.91 kB / 280.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.559e-06/0.007895, allocations: 8.219 kB / 280.4 MB, free: 13.91 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.665e-05/0.007942, allocations: 23.83 kB / 280.4 MB, free: 13.88 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.037e-06/0.007951, allocations: 7.984 kB / 280.5 MB, free: 13.88 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 8.955e-05/0.00804, allocations: 182.4 kB / 280.6 MB, free: 13.68 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.321e-05/0.008063, allocations: 19.91 kB / 280.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.008274, allocations: 165.1 kB / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.655e-06/0.008276, allocations: 0 / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.414e-06/0.008279, allocations: 0 / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.497e-06/0.008282, allocations: 0 / 280.8 MB, free: 13.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003487/0.008631, allocations: 425.8 kB / 281.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.683e-06/0.008633, allocations: 4 kB / 281.2 MB, free: 13.05 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.812e-05/0.008691, allocations: 23.98 kB / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.008693, allocations: 0 / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.286e-05/0.008706, allocations: 7.984 kB / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.042e-06/0.008707, allocations: 0 / 281.3 MB, free: 13.02 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.245e-06/0.008709, allocations: 3.984 kB / 281.3 MB, free: 13.01 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.008982, allocations: 339.6 kB / 281.6 MB, free: 12.66 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.166e-05/0.008994, allocations: 15.91 kB / 281.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.588e-05/0.00902, allocations: 8 kB / 281.6 MB, free: 12.64 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.048e-05/0.00909, allocations: 19.97 kB / 281.6 MB, free: 12.62 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.236e-05/0.009123, allocations: 12.02 kB / 281.7 MB, free: 12.61 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.647e-05/0.009139, allocations: 11.98 kB / 281.7 MB, free: 12.59 MB / 266.7 MB Notification: Performance of sorting global known variables: time 4.898e-05/0.009188, allocations: 146.1 kB / 281.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of sort global known variables: time 5e-08/0.009188, allocations: 0 / 281.8 MB, free: 12.45 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001797/0.009368, allocations: 31.98 kB / 281.8 MB, free: 12.42 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 9.698e-05/0.009465, allocations: 111.8 kB / 281.9 MB, free: 12.3 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001355/0.0096, allocations: 98.11 kB / 282 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 2.013e-06/0.009602, allocations: 128 / 282 MB, free: 12.21 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 5.448e-05/0.009657, allocations: 45.72 kB / 282.1 MB, free: 12.16 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001692/0.009826, allocations: 20.31 kB / 282.1 MB, free: 12.14 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005436/0.01037, allocations: 286.9 kB / 282.4 MB, free: 11.83 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.908e-05/0.01041, allocations: 71.7 kB / 282.5 MB, free: 11.74 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.391e-05/0.01044, allocations: 17.14 kB / 282.5 MB, free: 11.73 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.435e-05/0.0105, allocations: 78.2 kB / 282.6 MB, free: 11.65 MB / 266.7 MB Notification: Performance of SimCode: time 7.21e-07/0.0105, allocations: 7.875 kB / 282.6 MB, free: 11.64 MB / 266.7 MB Notification: Performance of Templates: time 0.00305/0.01355, allocations: 1.394 MB / 284 MB, free: 10.27 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.6794789149425924]