Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001816/0.001816, allocations: 79.73 kB / 21.25 MB, free: 396 kB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001887/0.001887, allocations: 163.7 kB / 24.5 MB, free: 3.449 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.48/1.48, allocations: 177.1 MB / 204.7 MB, free: 8.91 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001948/0.001948, allocations: 66.41 kB / 325.5 MB, free: 216 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1281/0.1301, allocations: 53.39 MB / 378.9 MB, free: 15.52 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003417/0.1335, allocations: 1.691 MB / 380.6 MB, free: 13.82 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001291/0.1348, allocations: 0.6272 MB / 381.2 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.76e-05/0.1349, allocations: 3.938 kB / 381.2 MB, free: 13.18 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001231/0.135, allocations: 11.86 kB / 381.2 MB, free: 13.17 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 5.29e-05/0.135, allocations: 27.78 kB / 381.3 MB, free: 13.14 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003368/0.1354, allocations: 91.7 kB / 381.4 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002284/0.1356, allocations: 147.5 kB / 381.5 MB, free: 12.91 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00014/0.1358, allocations: 25.56 kB / 381.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001761/0.1359, allocations: 67.83 kB / 381.6 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001185/0.136, allocations: 59.73 kB / 381.7 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.929e-05/0.1361, allocations: 16 kB / 381.7 MB, free: 12.74 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.453e-05/0.1361, allocations: 16 kB / 381.7 MB, free: 12.72 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.506e-05/0.1362, allocations: 39.83 kB / 381.7 MB, free: 12.68 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.641e-05/0.1363, allocations: 59.72 kB / 381.8 MB, free: 12.62 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002322/0.1365, allocations: 131.5 kB / 381.9 MB, free: 12.5 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.297e-06/0.1365, allocations: 4 kB / 381.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.393e-06/0.1365, allocations: 0 / 381.9 MB, free: 12.49 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.785e-06/0.1365, allocations: 0 / 381.9 MB, free: 12.49 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.0007748/0.1373, allocations: 417.1 kB / 382.3 MB, free: 12.04 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.666e-05/0.1373, allocations: 15.98 kB / 382.3 MB, free: 12.03 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002389/0.1376, allocations: 32.81 kB / 382.4 MB, free: 12 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003091/0.1379, allocations: 162.8 kB / 382.5 MB, free: 11.81 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.912e-05/0.1379, allocations: 8.375 kB / 382.5 MB, free: 11.8 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.338e-05/0.138, allocations: 16.12 kB / 382.6 MB, free: 11.79 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004517/0.1384, allocations: 160.3 kB / 382.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.558e-06/0.1384, allocations: 0 / 382.7 MB, free: 11.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.34e-05/0.1384, allocations: 7.984 kB / 382.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.291e-06/0.1385, allocations: 0 / 382.7 MB, free: 11.62 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003369/0.1388, allocations: 103.9 kB / 382.8 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006653/0.1395, allocations: 340.1 kB / 383.1 MB, free: 11.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000568/0.14, allocations: 182.4 kB / 383.3 MB, free: 10.97 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002767/0.1403, allocations: 88.78 kB / 383.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.166e-05/0.1403, allocations: 4 kB / 383.4 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004239/0.1407, allocations: 175.1 kB / 383.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.1407, allocations: 0 / 383.6 MB, free: 10.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001006/0.1418, allocations: 356.9 kB / 383.9 MB, free: 10.34 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.808e-05/0.1418, allocations: 59.41 kB / 384 MB, free: 10.27 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000148/0.142, allocations: 148.6 kB / 384.1 MB, free: 10.12 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.011e-05/0.142, allocations: 33.7 kB / 384.2 MB, free: 10.08 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.357e-05/0.1421, allocations: 96.59 kB / 384.3 MB, free: 9.98 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.864e-05/0.1421, allocations: 43.69 kB / 384.3 MB, free: 9.938 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/0.1422, allocations: 49.69 kB / 384.4 MB, free: 9.883 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001742/0.1424, allocations: 322.8 kB / 384.7 MB, free: 9.559 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001165/0.1425, allocations: 51.91 kB / 384.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001793/0.1427, allocations: 113.2 kB / 384.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002941/0.143, allocations: 176.3 kB / 385 MB, free: 9.164 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.143, allocations: 0 / 385 MB, free: 9.164 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003649/0.1433, allocations: 209.5 kB / 385.2 MB, free: 8.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.58e-05/0.1433, allocations: 4 kB / 385.2 MB, free: 8.949 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.325e-06/0.1433, allocations: 7.938 kB / 385.2 MB, free: 8.941 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.008e-05/0.1434, allocations: 8 kB / 385.2 MB, free: 8.934 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001663/0.1435, allocations: 27.98 kB / 385.3 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.441e-05/0.1435, allocations: 11.88 kB / 385.3 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.394e-05/0.1436, allocations: 23.88 kB / 385.3 MB, free: 8.871 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.1437, allocations: 12 kB / 385.3 MB, free: 8.859 MB / 350.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.0001391/0.1438, allocations: 135.9 kB / 385.4 MB, free: 8.715 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.122e-05/0.1438, allocations: 19.89 kB / 385.5 MB, free: 8.695 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000721/0.1445, allocations: 266.3 kB / 385.7 MB, free: 8.426 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.816e-06/0.1446, allocations: 4 kB / 385.7 MB, free: 8.422 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.361e-06/0.1446, allocations: 7.938 kB / 385.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.757e-06/0.1446, allocations: 0 / 385.7 MB, free: 8.414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009187/0.1455, allocations: 0.5018 MB / 386.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.1455, allocations: 0 / 386.2 MB, free: 7.875 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001014/0.1456, allocations: 27.92 kB / 386.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.864e-06/0.1456, allocations: 0 / 386.3 MB, free: 7.848 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.48e-05/0.1456, allocations: 11.92 kB / 386.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-06/0.1456, allocations: 0 / 386.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.81e-07/0.1456, allocations: 0 / 386.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001041/0.1467, allocations: 471.2 kB / 386.7 MB, free: 7.359 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.325e-05/0.1467, allocations: 15.88 kB / 386.7 MB, free: 7.344 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.946e-05/0.1467, allocations: 15.92 kB / 386.8 MB, free: 7.328 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001843/0.1469, allocations: 27.97 kB / 386.8 MB, free: 7.301 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.359e-05/0.147, allocations: 19.97 kB / 386.8 MB, free: 7.281 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.948e-05/0.147, allocations: 8 kB / 386.8 MB, free: 7.273 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.371e-05/0.1471, allocations: 114.4 kB / 386.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.1471, allocations: 0 / 386.9 MB, free: 7.164 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000272/0.1473, allocations: 28 kB / 387 MB, free: 7.137 MB / 350.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.0001356/0.1475, allocations: 107.6 kB / 387.1 MB, free: 7.023 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004506/0.1479, allocations: 159.7 kB / 387.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1479, allocations: 0 / 387.2 MB, free: 6.867 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000248/0.1482, allocations: 94.66 kB / 387.3 MB, free: 6.777 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002432/0.1484, allocations: 11.98 kB / 387.3 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007978/0.1492, allocations: 341.3 kB / 387.7 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.829e-05/0.1493, allocations: 97.66 kB / 387.7 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.67e-05/0.1494, allocations: 17.14 kB / 387.8 MB, free: 6.277 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.682e-05/0.1494, allocations: 20.48 kB / 387.8 MB, free: 6.258 MB / 350.1 MB Notification: Performance of SimCode: time 4e-07/0.1494, allocations: 3.938 kB / 387.8 MB, free: 6.254 MB / 350.1 MB Notification: Performance of Templates: time 0.004377/0.1538, allocations: 1.233 MB / 389 MB, free: 5.039 MB / 350.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.sim & ./Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema -abortSlowSimulation -alarm=480 -s ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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: 6.088846184080467]