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.001702/0.001702, allocations: 79.59 kB / 21.18 MB, free: 3.387 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.001153/0.001153, allocations: 161 kB / 24.56 MB, free: 16 kB / 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 1.068/1.068, allocations: 177.1 MB / 205 MB, free: 5.598 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 2.134e-06/2.134e-06, allocations: 0 / 273 MB, free: 1.535 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.678e-05/2.891e-05, allocations: 2.312 kB / 273 MB, free: 1.531 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00285/0.002879, allocations: 1.75 MB / 274.7 MB, free: 15.77 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.003994, allocations: 0.6504 MB / 275.4 MB, free: 15.12 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.85e-05/0.004082, allocations: 4 kB / 275.4 MB, free: 15.11 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.0042, allocations: 15.8 kB / 275.4 MB, free: 15.1 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 4.534e-05/0.004245, allocations: 19.78 kB / 275.4 MB, free: 15.08 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003086/0.004554, allocations: 95.64 kB / 275.5 MB, free: 14.98 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001774/0.004731, allocations: 155.5 kB / 275.6 MB, free: 14.83 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001229/0.004854, allocations: 21.61 kB / 275.7 MB, free: 14.81 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001986/0.005052, allocations: 87.8 kB / 275.8 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.471e-05/0.005147, allocations: 55.84 kB / 275.8 MB, free: 14.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 2.749e-05/0.005175, allocations: 12 kB / 275.8 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.221e-05/0.005237, allocations: 20 kB / 275.8 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 3.195e-05/0.005269, allocations: 35.89 kB / 275.9 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 5.48e-05/0.005323, allocations: 47.77 kB / 275.9 MB, free: 14.55 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00019/0.005513, allocations: 111.6 kB / 276 MB, free: 14.45 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.986e-06/0.005516, allocations: 4 kB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.005518, allocations: 4 kB / 276 MB, free: 14.44 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.005523, allocations: 0 / 276 MB, free: 14.44 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.0006262/0.006149, allocations: 0.5073 MB / 276.5 MB, free: 13.88 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.006198, allocations: 12.03 kB / 276.6 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002017/0.0064, allocations: 32.83 kB / 276.6 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.006611, allocations: 153 kB / 276.7 MB, free: 13.66 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.965e-05/0.00664, allocations: 16.36 kB / 276.8 MB, free: 13.65 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.711e-05/0.006678, allocations: 16.38 kB / 276.8 MB, free: 13.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002475/0.006925, allocations: 126.8 kB / 276.9 MB, free: 13.5 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.047e-05/0.006936, allocations: 7.938 kB / 276.9 MB, free: 13.49 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.811e-05/0.006954, allocations: 7.922 kB / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.406e-06/0.006962, allocations: 0 / 276.9 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.091e-05/0.007043, allocations: 27.97 kB / 276.9 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005275/0.00757, allocations: 399.3 kB / 277.3 MB, free: 13.03 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001975/0.007768, allocations: 103 kB / 277.4 MB, free: 12.92 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.597e-05/0.007834, allocations: 27.67 kB / 277.5 MB, free: 12.89 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.015e-05/0.007854, allocations: 4 kB / 277.5 MB, free: 12.88 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001866/0.008041, allocations: 109 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of pre-optimization done (n=15): time 1.423e-06/0.008042, allocations: 4 kB / 277.6 MB, free: 12.76 MB / 266.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003719/0.008414, allocations: 197.4 kB / 277.8 MB, free: 12.56 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.109e-05/0.008455, allocations: 55.41 kB / 277.8 MB, free: 12.49 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001136/0.008569, allocations: 204.9 kB / 278 MB, free: 12.28 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 1.738e-05/0.008586, allocations: 29.7 kB / 278 MB, free: 12.24 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.137e-05/0.008647, allocations: 155.2 kB / 278.2 MB, free: 12.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.043e-05/0.008688, allocations: 47.67 kB / 278.2 MB, free: 12.04 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.079e-05/0.008749, allocations: 51.36 kB / 278.3 MB, free: 11.98 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002457/0.008994, allocations: 0.4961 MB / 278.8 MB, free: 11.47 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.336e-05/0.009048, allocations: 23.98 kB / 278.8 MB, free: 11.45 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.995e-05/0.009148, allocations: 121.4 kB / 278.9 MB, free: 11.29 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001671/0.009315, allocations: 160.7 kB / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.595e-06/0.009317, allocations: 0 / 279.1 MB, free: 11.09 MB / 266.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002388/0.009556, allocations: 177.2 kB / 279.3 MB, free: 10.91 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.749e-05/0.009574, allocations: 10 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.172e-06/0.00958, allocations: 4 kB / 279.3 MB, free: 10.9 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.009597, allocations: 4 kB / 279.3 MB, free: 10.89 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001498/0.009747, allocations: 47.91 kB / 279.3 MB, free: 10.85 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.476e-06/0.009756, allocations: 4 kB / 279.3 MB, free: 10.84 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.993e-05/0.009816, allocations: 15.89 kB / 279.3 MB, free: 10.83 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.989e-05/0.009835, allocations: 15.94 kB / 279.4 MB, free: 10.81 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 9.634e-05/0.009932, allocations: 174.5 kB / 279.5 MB, free: 10.63 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.077e-05/0.009963, allocations: 23.91 kB / 279.6 MB, free: 10.61 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002774/0.01024, allocations: 162.3 kB / 279.7 MB, free: 10.44 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.01024, allocations: 7.984 kB / 279.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.567e-06/0.01025, allocations: 0 / 279.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.847e-06/0.01025, allocations: 0 / 279.7 MB, free: 10.43 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004365/0.01069, allocations: 468.4 kB / 280.2 MB, free: 9.938 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.466e-06/0.01069, allocations: 3.984 kB / 280.2 MB, free: 9.934 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.959e-05/0.01076, allocations: 12 kB / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.186e-06/0.01076, allocations: 0 / 280.2 MB, free: 9.922 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.589e-05/0.01078, allocations: 3.984 kB / 280.2 MB, free: 9.918 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.01078, allocations: 4 kB / 280.2 MB, free: 9.914 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.655e-06/0.01078, allocations: 3.938 kB / 280.2 MB, free: 9.91 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003627/0.01115, allocations: 351.7 kB / 280.5 MB, free: 9.547 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.964e-05/0.01117, allocations: 15.94 kB / 280.6 MB, free: 9.531 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.156e-05/0.0112, allocations: 11.98 kB / 280.6 MB, free: 9.52 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001018/0.0113, allocations: 23.92 kB / 280.6 MB, free: 9.496 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.413e-05/0.01134, allocations: 15.91 kB / 280.6 MB, free: 9.48 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.333e-05/0.01136, allocations: 7.984 kB / 280.6 MB, free: 9.473 MB / 266.7 MB Notification: Performance of sorting global known variables: time 5.852e-05/0.01142, allocations: 154.2 kB / 280.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.01142, allocations: 0 / 280.8 MB, free: 9.324 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0002557/0.01167, allocations: 28 kB / 280.8 MB, free: 9.297 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 0.00011/0.01178, allocations: 109.2 kB / 280.9 MB, free: 9.184 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0001891/0.01197, allocations: 103.5 kB / 281 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.242e-06/0.01197, allocations: 0 / 281 MB, free: 9.078 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 7.884e-05/0.01205, allocations: 55.59 kB / 281.1 MB, free: 9.02 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002254/0.01228, allocations: 15.98 kB / 281.1 MB, free: 9.004 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006732/0.01295, allocations: 303.2 kB / 281.4 MB, free: 8.68 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.643e-05/0.013, allocations: 68.09 kB / 281.4 MB, free: 8.594 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 3.775e-05/0.01303, allocations: 17.12 kB / 281.5 MB, free: 8.578 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.699e-05/0.01307, allocations: 12.5 kB / 281.5 MB, free: 8.566 MB / 266.7 MB Notification: Performance of SimCode: time 8.31e-07/0.01307, allocations: 4 kB / 281.5 MB, free: 8.562 MB / 266.7 MB Notification: Performance of Templates: time 0.003304/0.01638, allocations: 1.249 MB / 282.7 MB, free: 7.332 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: 4.053415605798364]