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.001418/0.001418, allocations: 80.8 kB / 21.49 MB, free: 2.996 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.001523/0.001523, allocations: 168.7 kB / 24.91 MB, free: 9.195 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.9581/0.9581, allocations: 177.1 MB / 205.3 MB, free: 5.496 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.533e-06/1.533e-06, allocations: 3.938 kB / 273.4 MB, free: 1.332 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.934e-05/2.087e-05, allocations: 2.312 kB / 273.4 MB, free: 1.328 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002366/0.002387, allocations: 1.751 MB / 275.2 MB, free: 15.57 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001032/0.003418, allocations: 0.662 MB / 275.8 MB, free: 14.9 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.451e-05/0.003493, allocations: 3.938 kB / 275.8 MB, free: 14.89 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001119/0.003605, allocations: 19.8 kB / 275.9 MB, free: 14.88 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.018e-05/0.003645, allocations: 19.73 kB / 275.9 MB, free: 14.86 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002691/0.003914, allocations: 87.69 kB / 276 MB, free: 14.77 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.000144/0.004058, allocations: 151.5 kB / 276.1 MB, free: 14.62 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.092e-05/0.004149, allocations: 30.2 kB / 276.2 MB, free: 14.59 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001554/0.004304, allocations: 91.86 kB / 276.2 MB, free: 14.5 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.992e-05/0.004384, allocations: 59.78 kB / 276.3 MB, free: 14.44 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.149e-05/0.004406, allocations: 12 kB / 276.3 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.287e-05/0.004458, allocations: 16 kB / 276.3 MB, free: 14.41 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.027e-05/0.004489, allocations: 35.89 kB / 276.4 MB, free: 14.38 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 4.52e-05/0.004534, allocations: 43.89 kB / 276.4 MB, free: 14.34 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001604/0.004694, allocations: 111.6 kB / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.395e-06/0.004697, allocations: 0 / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.004698, allocations: 0 / 276.5 MB, free: 14.23 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.917e-06/0.004702, allocations: 0 / 276.5 MB, free: 14.23 MB / 266.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.0004384/0.00514, allocations: 399.7 kB / 276.9 MB, free: 13.8 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.005174, allocations: 8.031 kB / 276.9 MB, free: 13.79 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001315/0.005305, allocations: 28.91 kB / 276.9 MB, free: 13.77 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001417/0.005447, allocations: 150.1 kB / 277.1 MB, free: 13.59 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.961e-05/0.005467, allocations: 12.38 kB / 277.1 MB, free: 13.58 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.348e-05/0.0055, allocations: 12.38 kB / 277.1 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001557/0.005656, allocations: 118.8 kB / 277.2 MB, free: 13.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.324e-06/0.005663, allocations: 3.938 kB / 277.2 MB, free: 13.44 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.026e-05/0.005673, allocations: 8 kB / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.749e-06/0.005678, allocations: 0 / 277.2 MB, free: 13.43 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.027e-05/0.005718, allocations: 23.92 kB / 277.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003207/0.006039, allocations: 240 kB / 277.5 MB, free: 13.16 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001157/0.006155, allocations: 78.42 kB / 277.6 MB, free: 13.07 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.458e-05/0.006189, allocations: 24.83 kB / 277.6 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.243e-05/0.006202, allocations: 4 kB / 277.6 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001083/0.00631, allocations: 107.3 kB / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.462e-06/0.006312, allocations: 0 / 277.7 MB, free: 12.93 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0001736/0.006485, allocations: 113.5 kB / 277.8 MB, free: 12.81 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.852e-05/0.006524, allocations: 59.39 kB / 277.9 MB, free: 12.74 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.006e-05/0.006594, allocations: 146 kB / 278 MB, free: 12.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.512e-05/0.006609, allocations: 33.7 kB / 278.1 MB, free: 12.55 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.294e-05/0.006642, allocations: 96.56 kB / 278.1 MB, free: 12.45 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.042e-05/0.006672, allocations: 43.61 kB / 278.2 MB, free: 12.41 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.361e-05/0.006716, allocations: 49.67 kB / 278.2 MB, free: 12.35 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 7.838e-05/0.006794, allocations: 330.7 kB / 278.6 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.439e-05/0.006819, allocations: 23.98 kB / 278.6 MB, free: 12 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.559e-05/0.006874, allocations: 85.16 kB / 278.7 MB, free: 11.88 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.909e-05/0.006973, allocations: 124.3 kB / 278.8 MB, free: 11.73 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.114e-06/0.006975, allocations: 8 kB / 278.8 MB, free: 11.72 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003964/0.007372, allocations: 125.4 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.146e-05/0.007383, allocations: 5.562 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.69e-06/0.007389, allocations: 4 kB / 278.9 MB, free: 11.59 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.547e-05/0.007404, allocations: 4 kB / 278.9 MB, free: 11.58 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001058/0.00751, allocations: 47.91 kB / 279 MB, free: 11.54 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.159e-06/0.007515, allocations: 8.219 kB / 279 MB, free: 11.53 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.149e-05/0.007557, allocations: 19.89 kB / 279 MB, free: 11.51 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.068e-05/0.007568, allocations: 11.98 kB / 279 MB, free: 11.5 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 7.314e-05/0.007641, allocations: 123.8 kB / 279.1 MB, free: 11.36 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.832e-05/0.007659, allocations: 15.98 kB / 279.2 MB, free: 11.35 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001221/0.007781, allocations: 106 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.236e-06/0.007784, allocations: 4 kB / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.353e-06/0.007786, allocations: 0 / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.176e-06/0.007789, allocations: 0 / 279.3 MB, free: 11.24 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002205/0.00801, allocations: 270.5 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.353e-06/0.008011, allocations: 4 kB / 279.5 MB, free: 10.95 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.697e-05/0.008058, allocations: 15.98 kB / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.723e-06/0.00806, allocations: 0 / 279.5 MB, free: 10.93 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.203e-05/0.008072, allocations: 11.98 kB / 279.6 MB, free: 10.92 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.683e-06/0.008073, allocations: 7.938 kB / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.072e-06/0.008074, allocations: 0 / 279.6 MB, free: 10.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001718/0.008246, allocations: 219.3 kB / 279.8 MB, free: 10.68 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.014e-05/0.008256, allocations: 12.16 kB / 279.8 MB, free: 10.67 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.418e-05/0.00828, allocations: 11.98 kB / 279.8 MB, free: 10.66 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.746e-05/0.008348, allocations: 15.98 kB / 279.8 MB, free: 10.64 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.279e-05/0.008381, allocations: 23.89 kB / 279.8 MB, free: 10.62 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.635e-06/0.008388, allocations: 3.984 kB / 279.8 MB, free: 10.61 MB / 266.7 MB Notification: Performance of sorting global known variables: time 2.412e-05/0.008412, allocations: 35.77 kB / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of sort global known variables: time 4e-08/0.008413, allocations: 0 / 279.9 MB, free: 10.58 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0001553/0.008568, allocations: 31.98 kB / 279.9 MB, free: 10.55 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 7.997e-05/0.008648, allocations: 86.38 kB / 280 MB, free: 10.46 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001168/0.008765, allocations: 89.11 kB / 280.1 MB, free: 10.37 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 4.308e-06/0.008769, allocations: 8.125 kB / 280.1 MB, free: 10.36 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 4.87e-05/0.008818, allocations: 44.78 kB / 280.1 MB, free: 10.31 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001215/0.008939, allocations: 15.98 kB / 280.1 MB, free: 10.3 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005082/0.009447, allocations: 284.5 kB / 280.4 MB, free: 9.996 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.752e-05/0.009485, allocations: 71.78 kB / 280.5 MB, free: 9.906 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.028e-05/0.009515, allocations: 17.14 kB / 280.5 MB, free: 9.891 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.282e-05/0.009568, allocations: 59.38 kB / 280.6 MB, free: 9.832 MB / 266.7 MB Notification: Performance of SimCode: time 6.11e-07/0.009569, allocations: 0 / 280.6 MB, free: 9.832 MB / 266.7 MB Notification: Performance of Templates: time 0.002698/0.01227, allocations: 1.299 MB / 281.9 MB, free: 8.559 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.273654824588448]