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.0009169/0.0009169, allocations: 76.36 kB / 20.67 MB, free: 3.895 MB / 18.57 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.0008488/0.0008488, allocations: 160.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9011/0.9011, allocations: 177 MB / 204.1 MB, free: 5.754 MB / 186.7 MB " [Timeout remaining time 179] 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: "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.DemonstrateSignalExtrema,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.726e-05/1.906e-05, allocations: 6.219 kB / 324.5 MB, free: 15.91 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00249/0.002509, allocations: 1.702 MB / 326.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001206/0.003714, allocations: 0.6232 MB / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001208/0.003835, allocations: 0 / 326.8 MB, free: 13.56 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001792/0.004014, allocations: 23.8 kB / 326.9 MB, free: 13.54 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 5.991e-05/0.004074, allocations: 23.78 kB / 326.9 MB, free: 13.52 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004787/0.004553, allocations: 87.64 kB / 327 MB, free: 13.43 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001708/0.004724, allocations: 151.5 kB / 327.1 MB, free: 13.28 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001363/0.00486, allocations: 25.61 kB / 327.1 MB, free: 13.25 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001956/0.005055, allocations: 91.73 kB / 327.2 MB, free: 13.16 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.427e-05/0.00515, allocations: 55.84 kB / 327.3 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.464e-05/0.005174, allocations: 12 kB / 327.3 MB, free: 13.09 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.595e-05/0.00525, allocations: 23.94 kB / 327.3 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.055e-05/0.005281, allocations: 35.89 kB / 327.4 MB, free: 13.04 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.411e-05/0.005335, allocations: 47.88 kB / 327.4 MB, free: 12.99 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002099/0.005545, allocations: 147.5 kB / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.555e-06/0.005547, allocations: 0 / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.005549, allocations: 0 / 327.5 MB, free: 12.84 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.005556, allocations: 0 / 327.5 MB, free: 12.84 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.0006095/0.006165, allocations: 413.2 kB / 327.9 MB, free: 12.4 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.755e-05/0.006223, allocations: 11.98 kB / 328 MB, free: 12.39 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.404e-05/0.006267, allocations: 38.75 kB / 328 MB, free: 12.34 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001614/0.006428, allocations: 40.81 kB / 328 MB, free: 12.3 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.00663, allocations: 154.1 kB / 328.2 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.281e-05/0.006653, allocations: 12.38 kB / 328.2 MB, free: 12.11 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.656e-05/0.006679, allocations: 12.38 kB / 328.2 MB, free: 12.1 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002669/0.006946, allocations: 169.7 kB / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.234e-06/0.006953, allocations: 0 / 328.4 MB, free: 11.93 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.266e-05/0.006966, allocations: 8 kB / 328.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.791e-06/0.006972, allocations: 4 kB / 328.4 MB, free: 11.92 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001876/0.00716, allocations: 99.34 kB / 328.5 MB, free: 11.82 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004658/0.007625, allocations: 367.6 kB / 328.8 MB, free: 11.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003193/0.007945, allocations: 174.4 kB / 329 MB, free: 11.24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001492/0.008094, allocations: 92.78 kB / 329.1 MB, free: 11.15 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.765e-05/0.008111, allocations: 3.938 kB / 329.1 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002781/0.00839, allocations: 178.1 kB / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of pre-optimization done (n=15): time 1.263e-06/0.008391, allocations: 0 / 329.3 MB, free: 10.96 MB / 298.7 MB Notification: Performance of matching and sorting (n=15): time 0.0006075/0.008998, allocations: 349.3 kB / 329.6 MB, free: 10.61 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.297e-05/0.009041, allocations: 59.39 kB / 329.7 MB, free: 10.54 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001061/0.009147, allocations: 156.7 kB / 329.8 MB, free: 10.38 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.045e-05/0.009168, allocations: 33.7 kB / 329.9 MB, free: 10.34 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.905e-05/0.009217, allocations: 100.6 kB / 330 MB, free: 10.24 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.743e-05/0.009254, allocations: 43.69 kB / 330 MB, free: 10.2 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003143/0.009569, allocations: 45.7 kB / 330.1 MB, free: 10.15 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.209e-05/0.009661, allocations: 326.8 kB / 330.4 MB, free: 9.82 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.998e-05/0.009731, allocations: 43.97 kB / 330.4 MB, free: 9.777 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001035/0.009834, allocations: 116.5 kB / 330.5 MB, free: 9.633 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00017/0.01, allocations: 172.4 kB / 330.7 MB, free: 9.434 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.536e-06/0.01001, allocations: 4 kB / 330.7 MB, free: 9.43 MB / 298.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002172/0.01023, allocations: 209.3 kB / 330.9 MB, free: 9.219 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.255e-05/0.01024, allocations: 4 kB / 330.9 MB, free: 9.215 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.062e-06/0.01024, allocations: 4 kB / 330.9 MB, free: 9.211 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.345e-05/0.01026, allocations: 4 kB / 330.9 MB, free: 9.207 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.75e-05/0.01035, allocations: 35.91 kB / 331 MB, free: 9.172 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.01036, allocations: 16.14 kB / 331 MB, free: 9.156 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.691e-05/0.01041, allocations: 27.88 kB / 331 MB, free: 9.129 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.271e-05/0.01042, allocations: 12 kB / 331 MB, free: 9.117 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.137e-05/0.0105, allocations: 135.7 kB / 331.1 MB, free: 8.977 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.449e-05/0.01052, allocations: 11.91 kB / 331.2 MB, free: 8.965 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003869/0.0109, allocations: 274.3 kB / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.834e-06/0.01091, allocations: 0 / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.329e-06/0.01091, allocations: 0 / 331.4 MB, free: 8.695 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.492e-06/0.01092, allocations: 7.922 kB / 331.4 MB, free: 8.688 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005355/0.01145, allocations: 0.5351 MB / 332 MB, free: 8.105 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.417e-06/0.01146, allocations: 4 kB / 332 MB, free: 8.102 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.439e-05/0.01151, allocations: 11.98 kB / 332 MB, free: 8.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.01151, allocations: 4 kB / 332 MB, free: 8.086 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.399e-05/0.01153, allocations: 11.92 kB / 332 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.884e-06/0.01153, allocations: 0 / 332 MB, free: 8.074 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.334e-06/0.01153, allocations: 4 kB / 332 MB, free: 8.07 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005558/0.01209, allocations: 471.2 kB / 332.5 MB, free: 7.594 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.409e-05/0.0121, allocations: 15.88 kB / 332.5 MB, free: 7.578 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.978e-05/0.01213, allocations: 11.94 kB / 332.5 MB, free: 7.566 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.647e-05/0.01222, allocations: 28.03 kB / 332.5 MB, free: 7.539 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.789e-05/0.01227, allocations: 15.97 kB / 332.5 MB, free: 7.523 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.17e-05/0.01228, allocations: 8 kB / 332.5 MB, free: 7.516 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.795e-05/0.01233, allocations: 111.2 kB / 332.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of sort global known variables: time 5e-08/0.01233, allocations: 0 / 332.6 MB, free: 7.406 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.000175/0.0125, allocations: 28 kB / 332.7 MB, free: 7.379 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.0006877/0.01319, allocations: 0.9855 MB / 333.7 MB, free: 6.363 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002494/0.01344, allocations: 163.1 kB / 333.8 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.373e-06/0.01344, allocations: 0 / 333.8 MB, free: 6.207 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001316/0.01357, allocations: 91.84 kB / 333.9 MB, free: 6.117 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001681/0.01374, allocations: 11.94 kB / 333.9 MB, free: 6.105 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001625/0.01536, allocations: 1.945 MB / 335.9 MB, free: 4.012 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.821e-05/0.01542, allocations: 101.6 kB / 336 MB, free: 3.895 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 3.13e-05/0.01545, allocations: 9.141 kB / 336 MB, free: 3.887 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.835e-05/0.01551, allocations: 40.48 kB / 336 MB, free: 3.848 MB / 298.7 MB Notification: Performance of SimCode: time 5.31e-07/0.01551, allocations: 0 / 336 MB, free: 3.848 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01743/0.03294, allocations: 3.487 MB / 339.5 MB, free: 464 kB / 298.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.565/6.597, allocations: 14.48 kB / 339.5 MB, free: 452 kB / 298.7 MB " [Timeout remaining time 653] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema_fmu --startTime=0 --stopTime=1.5 --stepSize=1e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_DemonstrateSignalExtrema.fmu > Modelica_trunk_Modelica.Blocks.Examples.DemonstrateSignalExtrema.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_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: 9.672836629673839]