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.0009957/0.0009957, allocations: 83.69 kB / 20.67 MB, free: 3.887 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.0009257/0.0009257, allocations: 170.3 kB / 23.95 MB, free: 0.6094 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.8884/0.8884, allocations: 177.1 MB / 204.3 MB, free: 5.73 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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 4.378e-06/4.378e-06, allocations: 3.984 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.867e-05/2.305e-05, allocations: 6.219 kB / 324.6 MB, free: 15.95 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002713/0.002736, allocations: 1.704 MB / 326.3 MB, free: 14.23 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0008383/0.003575, allocations: 0.6232 MB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.917e-05/0.003654, allocations: 3.938 kB / 326.9 MB, free: 13.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000106/0.00376, allocations: 23.8 kB / 326.9 MB, free: 13.57 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 3.777e-05/0.003798, allocations: 23.73 kB / 326.9 MB, free: 13.55 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.0041, allocations: 91.62 kB / 327 MB, free: 13.46 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001606/0.00426, allocations: 155.5 kB / 327.2 MB, free: 13.31 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001135/0.004374, allocations: 21.62 kB / 327.2 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001629/0.004537, allocations: 91.84 kB / 327.3 MB, free: 13.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.971e-05/0.004606, allocations: 47.8 kB / 327.3 MB, free: 13.14 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.908e-05/0.004625, allocations: 12 kB / 327.3 MB, free: 13.13 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 5.15e-05/0.004677, allocations: 24 kB / 327.4 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.813e-05/0.004705, allocations: 39.88 kB / 327.4 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.396e-05/0.004749, allocations: 39.91 kB / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001647/0.004914, allocations: 147.5 kB / 327.6 MB, free: 12.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.274e-06/0.004916, allocations: 3.938 kB / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.102e-06/0.004917, allocations: 0 / 327.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.887e-06/0.004921, allocations: 0 / 327.6 MB, free: 12.88 MB / 298.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.0004875/0.005408, allocations: 424.4 kB / 328 MB, free: 12.43 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.896e-05/0.005447, allocations: 12.03 kB / 328 MB, free: 12.42 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.222e-05/0.00548, allocations: 38.73 kB / 328.1 MB, free: 12.37 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000125/0.005605, allocations: 40.81 kB / 328.1 MB, free: 12.33 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001723/0.005777, allocations: 150.2 kB / 328.2 MB, free: 12.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.224e-05/0.005799, allocations: 8.375 kB / 328.3 MB, free: 12.15 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.471e-05/0.005824, allocations: 12.38 kB / 328.3 MB, free: 12.14 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002648/0.006089, allocations: 169.5 kB / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.486e-06/0.006097, allocations: 0 / 328.4 MB, free: 11.97 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.409e-05/0.006111, allocations: 11.98 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.26e-06/0.006116, allocations: 4 kB / 328.4 MB, free: 11.96 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001801/0.006297, allocations: 95.91 kB / 328.5 MB, free: 11.86 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004554/0.006752, allocations: 363.6 kB / 328.9 MB, free: 11.46 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003259/0.007078, allocations: 182.4 kB / 329.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001473/0.007225, allocations: 88.78 kB / 329.2 MB, free: 11.19 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.854e-05/0.007244, allocations: 7.984 kB / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002597/0.007503, allocations: 169.6 kB / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.343e-06/0.007505, allocations: 0 / 329.3 MB, free: 11 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0005774/0.008082, allocations: 357.2 kB / 329.7 MB, free: 10.65 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.742e-05/0.008119, allocations: 55.41 kB / 329.7 MB, free: 10.58 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.448e-05/0.008204, allocations: 160.7 kB / 329.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.442e-05/0.008218, allocations: 29.7 kB / 329.9 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.301e-05/0.008261, allocations: 100.6 kB / 330 MB, free: 10.28 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.94e-05/0.008291, allocations: 47.67 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.505e-05/0.008336, allocations: 45.7 kB / 330.1 MB, free: 10.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.306e-05/0.008419, allocations: 322.8 kB / 330.4 MB, free: 9.859 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.477e-05/0.008484, allocations: 43.97 kB / 330.5 MB, free: 9.816 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 9.205e-05/0.008576, allocations: 120.5 kB / 330.6 MB, free: 9.668 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001655/0.008741, allocations: 172.4 kB / 330.8 MB, free: 9.469 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.008743, allocations: 0 / 330.8 MB, free: 9.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002133/0.008957, allocations: 205.3 kB / 331 MB, free: 9.262 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.257e-05/0.008969, allocations: 8 kB / 331 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.53e-06/0.008975, allocations: 0 / 331 MB, free: 9.254 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.283e-05/0.008988, allocations: 4 kB / 331 MB, free: 9.25 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001001/0.009088, allocations: 39.91 kB / 331 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.562e-06/0.009094, allocations: 7.938 kB / 331 MB, free: 9.203 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.995e-05/0.009144, allocations: 20.17 kB / 331 MB, free: 9.184 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.236e-05/0.009157, allocations: 11.98 kB / 331 MB, free: 9.172 MB / 298.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 8.615e-05/0.009243, allocations: 139.7 kB / 331.2 MB, free: 9.027 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.647e-05/0.009259, allocations: 11.91 kB / 331.2 MB, free: 9.016 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003941/0.009653, allocations: 281 kB / 331.5 MB, free: 8.742 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.009658, allocations: 4 kB / 331.5 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.867e-06/0.009662, allocations: 0 / 331.5 MB, free: 8.738 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.37e-06/0.009667, allocations: 3.938 kB / 331.5 MB, free: 8.734 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005338/0.0102, allocations: 0.5325 MB / 332 MB, free: 8.152 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.954e-06/0.0102, allocations: 7.938 kB / 332 MB, free: 8.145 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.337e-05/0.01026, allocations: 19.92 kB / 332 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.033e-06/0.01026, allocations: 0 / 332 MB, free: 8.125 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002602/0.01052, allocations: 11.92 kB / 332 MB, free: 8.113 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.343e-06/0.01052, allocations: 4 kB / 332.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.01052, allocations: 0 / 332.1 MB, free: 8.109 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005381/0.01106, allocations: 463.2 kB / 332.5 MB, free: 7.641 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.295e-05/0.01107, allocations: 15.88 kB / 332.5 MB, free: 7.625 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.723e-05/0.0111, allocations: 19.92 kB / 332.5 MB, free: 7.605 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.762e-05/0.01119, allocations: 28.03 kB / 332.6 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.935e-05/0.01123, allocations: 15.97 kB / 332.6 MB, free: 7.562 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.188e-06/0.01124, allocations: 4 kB / 332.6 MB, free: 7.559 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.548e-05/0.01128, allocations: 111.2 kB / 332.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01128, allocations: 0 / 332.7 MB, free: 7.449 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001834/0.01146, allocations: 28 kB / 332.7 MB, free: 7.422 MB / 298.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.0006689/0.01213, allocations: 0.9988 MB / 333.7 MB, free: 6.402 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002625/0.0124, allocations: 159.8 kB / 333.9 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.272e-06/0.0124, allocations: 0 / 333.9 MB, free: 6.246 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001299/0.01253, allocations: 87.86 kB / 334 MB, free: 6.16 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001705/0.0127, allocations: 8 kB / 334 MB, free: 6.152 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001475/0.01417, allocations: 1.946 MB / 335.9 MB, free: 4.062 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 6.204e-05/0.01423, allocations: 97.61 kB / 336 MB, free: 3.945 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.416e-05/0.01427, allocations: 13.14 kB / 336 MB, free: 3.934 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.264e-05/0.01433, allocations: 36.48 kB / 336.1 MB, free: 3.898 MB / 298.7 MB Notification: Performance of SimCode: time 5.11e-07/0.01433, allocations: 0 / 336.1 MB, free: 3.898 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01688/0.03121, allocations: 3.5 MB / 339.6 MB, free: 0.5156 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.64/6.672, allocations: 11.92 kB / 339.6 MB, free: 0.5039 MB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 52.5] 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","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 9.69363967422396]