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.001494/0.001494, allocations: 116.5 kB / 18.45 MB, free: 4.562 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.00149/0.00149, allocations: 215.2 kB / 21.42 MB, free: 1.605 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.519/1.519, allocations: 230.6 MB / 254.8 MB, free: 15.23 MB / 206.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 0.001537/0.001537, allocations: 47.94 kB / 374.2 MB, free: 9.715 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1283/0.1298, allocations: 53.34 MB / 427.5 MB, free: 4.285 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003587/0.1334, allocations: 1.733 MB / 429.2 MB, free: 2.539 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001423/0.1348, allocations: 0.67 MB / 429.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001018/0.1349, allocations: 3.938 kB / 429.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001449/0.1351, allocations: 15.86 kB / 429.9 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.188e-05/0.1351, allocations: 15.8 kB / 429.9 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004097/0.1355, allocations: 87.77 kB / 430 MB, free: 1.742 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002591/0.1358, allocations: 151.5 kB / 430.2 MB, free: 1.594 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001481/0.1359, allocations: 25.44 kB / 430.2 MB, free: 1.566 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001871/0.1361, allocations: 67.83 kB / 430.2 MB, free: 1.5 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001256/0.1362, allocations: 67.73 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.914e-05/0.1363, allocations: 12 kB / 430.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 7.602e-05/0.1363, allocations: 20 kB / 430.3 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 6.117e-05/0.1364, allocations: 43.83 kB / 430.4 MB, free: 1.359 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.265e-05/0.1365, allocations: 67.64 kB / 430.5 MB, free: 1.293 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002516/0.1367, allocations: 139.4 kB / 430.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.1367, allocations: 0 / 430.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.508e-06/0.1367, allocations: 3.984 kB / 430.6 MB, free: 1.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.504e-06/0.1368, allocations: 0 / 430.6 MB, free: 1.152 MB / 350.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.0009048/0.1377, allocations: 486.3 kB / 431.1 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.566e-05/0.1377, allocations: 8.031 kB / 431.1 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002703/0.138, allocations: 36.81 kB / 431.1 MB, free: 0.5742 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003717/0.1383, allocations: 220.7 kB / 431.3 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.943e-05/0.1384, allocations: 12.31 kB / 431.3 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.854e-05/0.1384, allocations: 16.12 kB / 431.4 MB, free: 300 kB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005079/0.1389, allocations: 161.5 kB / 431.5 MB, free: 132 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.302e-05/0.139, allocations: 3.984 kB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.272e-05/0.139, allocations: 4 kB / 431.5 MB, free: 124 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.375e-05/0.139, allocations: 4 kB / 431.5 MB, free: 120 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003682/0.1394, allocations: 103.8 kB / 431.6 MB, free: 16 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008172/0.1402, allocations: 420.5 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006605/0.1408, allocations: 190.4 kB / 432.2 MB, free: 15.36 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003048/0.1411, allocations: 84.78 kB / 432.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.287e-05/0.1412, allocations: 8 kB / 432.3 MB, free: 15.27 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004674/0.1416, allocations: 171.1 kB / 432.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 2.004e-06/0.1416, allocations: 0 / 432.5 MB, free: 15.09 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.001147/0.1428, allocations: 343.3 kB / 432.8 MB, free: 14.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.061e-05/0.1428, allocations: 59.41 kB / 432.9 MB, free: 14.68 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001752/0.143, allocations: 155.6 kB / 433 MB, free: 14.52 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 3.363e-05/0.1431, allocations: 33.7 kB / 433.1 MB, free: 14.48 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.069e-05/0.1431, allocations: 100.5 kB / 433.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.06e-05/0.1432, allocations: 39.69 kB / 433.2 MB, free: 14.34 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.37e-05/0.1433, allocations: 45.69 kB / 433.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001919/0.1435, allocations: 326.8 kB / 433.6 MB, free: 13.96 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001265/0.1436, allocations: 51.91 kB / 433.6 MB, free: 13.91 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001945/0.1438, allocations: 112.5 kB / 433.7 MB, free: 13.77 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003206/0.1441, allocations: 172.4 kB / 433.9 MB, free: 13.57 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.995e-06/0.1441, allocations: 4 kB / 433.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004162/0.1445, allocations: 197.3 kB / 434.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.1446, allocations: 10.19 kB / 434.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.424e-06/0.1446, allocations: 0 / 434.1 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.273e-05/0.1446, allocations: 7.938 kB / 434.1 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001858/0.1448, allocations: 44.2 kB / 434.1 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.122e-05/0.1448, allocations: 11.88 kB / 434.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001028/0.1449, allocations: 27.81 kB / 434.2 MB, free: 13.27 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.706e-05/0.1449, allocations: 4 kB / 434.2 MB, free: 13.26 MB / 366.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.000166/0.1451, allocations: 131.5 kB / 434.3 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.254e-05/0.1451, allocations: 15.89 kB / 434.3 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007745/0.1459, allocations: 278.3 kB / 434.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.1459, allocations: 3.938 kB / 434.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.322e-06/0.1459, allocations: 0 / 434.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.799e-06/0.1459, allocations: 0 / 434.6 MB, free: 12.82 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001072/0.147, allocations: 0.5704 MB / 435.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.147, allocations: 3.938 kB / 435.2 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001045/0.1471, allocations: 19.98 kB / 435.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.054e-06/0.1471, allocations: 0 / 435.2 MB, free: 12.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.464e-05/0.1471, allocations: 7.984 kB / 435.2 MB, free: 12.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.823e-06/0.1471, allocations: 4 kB / 435.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.11e-07/0.1471, allocations: 0 / 435.2 MB, free: 12.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001122/0.1482, allocations: 475.1 kB / 435.7 MB, free: 11.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.787e-05/0.1483, allocations: 100.9 kB / 435.8 MB, free: 11.57 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.476e-05/0.1484, allocations: 8 kB / 435.8 MB, free: 11.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001994/0.1486, allocations: 27.97 kB / 435.8 MB, free: 11.53 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.816e-05/0.1486, allocations: 11.98 kB / 435.8 MB, free: 11.52 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.991e-05/0.1486, allocations: 12.05 kB / 435.8 MB, free: 11.51 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.366e-05/0.1487, allocations: 110.2 kB / 435.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of sort global known variables: time 5e-08/0.1487, allocations: 0 / 435.9 MB, free: 11.4 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002837/0.149, allocations: 28 kB / 436 MB, free: 11.38 MB / 366.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.0001521/0.1492, allocations: 103.2 kB / 436.1 MB, free: 11.27 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0004871/0.1496, allocations: 163.8 kB / 436.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.224e-06/0.1496, allocations: 0 / 436.2 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002924/0.1499, allocations: 94.23 kB / 436.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002642/0.1502, allocations: 11.94 kB / 436.3 MB, free: 11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009926/0.1512, allocations: 359 kB / 436.7 MB, free: 10.62 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004731/0.1517, allocations: 0.7084 MB / 437.4 MB, free: 9.887 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.305e-05/0.1517, allocations: 23.42 kB / 437.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1517, allocations: 0 / 437.4 MB, free: 9.863 MB / 366.1 MB Notification: Performance of Templates: time 0.004424/0.1562, allocations: 1.66 MB / 439.1 MB, free: 8.203 MB / 366.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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/DemonstrateSignalExtrema/DemonstrateSignalExtrema.csv","/var/lib/jenkins1/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: 9.154883690003771]