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.001806/0.001806, allocations: 73.8 kB / 21.24 MB, free: 0.5547 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.001557/0.001557, allocations: 160.3 kB / 24.5 MB, free: 3.715 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.432/1.432, allocations: 177.2 MB / 204.9 MB, free: 8.984 MB / 190.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.001541/0.001541, allocations: 51.5 kB / 325.6 MB, free: 256 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1011/0.1026, allocations: 53.34 MB / 378.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002902/0.1055, allocations: 1.69 MB / 380.6 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001115/0.1066, allocations: 0.6195 MB / 381.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.4e-05/0.1067, allocations: 3.938 kB / 381.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001202/0.1068, allocations: 19.8 kB / 381.2 MB, free: 13.3 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 4.816e-05/0.1069, allocations: 19.8 kB / 381.3 MB, free: 13.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002985/0.1072, allocations: 91.7 kB / 381.3 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002009/0.1074, allocations: 143.6 kB / 381.5 MB, free: 13.05 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001202/0.1075, allocations: 29.55 kB / 381.5 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001563/0.1077, allocations: 67.72 kB / 381.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00011/0.1078, allocations: 63.73 kB / 381.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.768e-05/0.1078, allocations: 12 kB / 381.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.537e-05/0.1079, allocations: 23.98 kB / 381.7 MB, free: 12.85 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.397e-05/0.1079, allocations: 35.91 kB / 381.7 MB, free: 12.81 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.108, allocations: 59.77 kB / 381.8 MB, free: 12.75 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002184/0.1082, allocations: 135.4 kB / 381.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.078e-06/0.1082, allocations: 0 / 381.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1082, allocations: 0 / 381.9 MB, free: 12.62 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.741e-06/0.1082, allocations: 0 / 381.9 MB, free: 12.62 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.000711/0.1089, allocations: 413.2 kB / 382.3 MB, free: 12.18 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.198e-05/0.109, allocations: 8.031 kB / 382.3 MB, free: 12.17 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002423/0.1092, allocations: 36.81 kB / 382.3 MB, free: 12.13 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002427/0.1094, allocations: 158.8 kB / 382.5 MB, free: 11.95 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.922e-05/0.1095, allocations: 12.38 kB / 382.5 MB, free: 11.94 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.647e-05/0.1095, allocations: 20.11 kB / 382.5 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004473/0.11, allocations: 161.5 kB / 382.7 MB, free: 11.76 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.057e-05/0.11, allocations: 4 kB / 382.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.846e-05/0.11, allocations: 4 kB / 382.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.338e-06/0.11, allocations: 0 / 382.7 MB, free: 11.75 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003557/0.1103, allocations: 103.9 kB / 382.8 MB, free: 11.65 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006302/0.111, allocations: 340.1 kB / 383.1 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005882/0.1116, allocations: 190.2 kB / 383.3 MB, free: 11.09 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002881/0.1119, allocations: 88.72 kB / 383.4 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.739e-05/0.1119, allocations: 8 kB / 383.4 MB, free: 11 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004178/0.1123, allocations: 163.3 kB / 383.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1123, allocations: 0 / 383.6 MB, free: 10.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.001063/0.1134, allocations: 353.3 kB / 383.9 MB, free: 10.47 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.556e-05/0.1134, allocations: 55.41 kB / 384 MB, free: 10.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001325/0.1135, allocations: 149.7 kB / 384.1 MB, free: 10.25 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.817e-05/0.1136, allocations: 33.7 kB / 384.2 MB, free: 10.21 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.896e-05/0.1136, allocations: 108.6 kB / 384.3 MB, free: 10.1 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.477e-05/0.1137, allocations: 39.69 kB / 384.3 MB, free: 10.06 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.015e-05/0.1138, allocations: 45.7 kB / 384.3 MB, free: 10.01 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001465/0.1139, allocations: 326.8 kB / 384.7 MB, free: 9.684 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.114, allocations: 39.97 kB / 384.7 MB, free: 9.645 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001755/0.1142, allocations: 125.1 kB / 384.8 MB, free: 9.492 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003197/0.1145, allocations: 176.4 kB / 385 MB, free: 9.289 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.959e-06/0.1145, allocations: 4 kB / 385 MB, free: 9.285 MB / 350.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003865/0.1149, allocations: 209.3 kB / 385.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.1149, allocations: 4 kB / 385.2 MB, free: 9.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.1149, allocations: 4 kB / 385.2 MB, free: 9.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.673e-05/0.1149, allocations: 4 kB / 385.2 MB, free: 9.062 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001741/0.1151, allocations: 39.91 kB / 385.3 MB, free: 9.023 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.907e-06/0.1151, allocations: 7.938 kB / 385.3 MB, free: 9.016 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.338e-05/0.1152, allocations: 15.89 kB / 385.3 MB, free: 9 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.288e-05/0.1152, allocations: 15.98 kB / 385.3 MB, free: 8.984 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.0001214/0.1154, allocations: 139.9 kB / 385.4 MB, free: 8.836 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.399e-05/0.1154, allocations: 11.91 kB / 385.4 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007451/0.1161, allocations: 273.9 kB / 385.7 MB, free: 8.551 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.575e-06/0.1161, allocations: 4 kB / 385.7 MB, free: 8.547 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.1162, allocations: 3.938 kB / 385.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.336e-06/0.1162, allocations: 0 / 385.7 MB, free: 8.543 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009534/0.1171, allocations: 0.5096 MB / 386.2 MB, free: 7.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.1171, allocations: 4 kB / 386.2 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001024/0.1172, allocations: 11.98 kB / 386.2 MB, free: 7.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.1172, allocations: 7.984 kB / 386.2 MB, free: 7.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.778e-05/0.1172, allocations: 3.938 kB / 386.3 MB, free: 7.969 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.71e-06/0.1172, allocations: 7.984 kB / 386.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.42e-07/0.1172, allocations: 0 / 386.3 MB, free: 7.961 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.1183, allocations: 471.2 kB / 386.7 MB, free: 7.484 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.257e-05/0.1184, allocations: 19.88 kB / 386.7 MB, free: 7.465 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.307e-05/0.1184, allocations: 11.94 kB / 386.8 MB, free: 7.453 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002045/0.1186, allocations: 36.02 kB / 386.8 MB, free: 7.418 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.1187, allocations: 7.984 kB / 386.8 MB, free: 7.41 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.137e-05/0.1187, allocations: 11.98 kB / 386.8 MB, free: 7.398 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.726e-05/0.1188, allocations: 106.3 kB / 386.9 MB, free: 7.297 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1188, allocations: 3.938 kB / 386.9 MB, free: 7.293 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002919/0.119, allocations: 28 kB / 386.9 MB, free: 7.266 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.0001285/0.1192, allocations: 107.2 kB / 387 MB, free: 7.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004879/0.1197, allocations: 163.8 kB / 387.2 MB, free: 6.992 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.765e-06/0.1197, allocations: 3.938 kB / 387.2 MB, free: 6.988 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002687/0.1199, allocations: 83.92 kB / 387.3 MB, free: 6.906 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002628/0.1202, allocations: 11.98 kB / 387.3 MB, free: 6.895 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000836/0.121, allocations: 344.4 kB / 387.6 MB, free: 6.535 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.826e-05/0.1211, allocations: 97.67 kB / 387.7 MB, free: 6.422 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.655e-05/0.1212, allocations: 17.08 kB / 387.8 MB, free: 6.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.265e-05/0.1212, allocations: 16.5 kB / 387.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of SimCode: time 5.21e-07/0.1212, allocations: 0 / 387.8 MB, free: 6.391 MB / 350.1 MB Notification: Performance of Templates: time 0.004402/0.1256, allocations: 1.246 MB / 389 MB, free: 5.156 MB / 350.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 -s ida -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: 5.826664170017466]