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.001417/0.001417, allocations: 119.1 kB / 20.45 MB, free: 1.176 MB / 14.72 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.001812/0.001812, allocations: 204.7 kB / 23.72 MB, free: 4.391 MB / 14.72 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 1.471/1.471, allocations: 230.5 MB / 257.4 MB, free: 7.758 MB / 206.1 MB " [Timeout remaining time 178] 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 0.002027/0.002027, allocations: 59.91 kB / 377.7 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3692/0.3712, allocations: 53.41 MB / 431.1 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.00289/0.3741, allocations: 1.696 MB / 432.8 MB, free: 4.77 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001223/0.3753, allocations: 0.6272 MB / 433.5 MB, free: 4.137 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.726e-05/0.3754, allocations: 7.938 kB / 433.5 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001209/0.3755, allocations: 11.86 kB / 433.5 MB, free: 4.117 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.377e-05/0.3756, allocations: 19.73 kB / 433.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.3759, allocations: 87.77 kB / 433.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002015/0.3761, allocations: 155.5 kB / 433.7 MB, free: 3.859 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001182/0.3762, allocations: 21.42 kB / 433.7 MB, free: 3.836 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001712/0.3764, allocations: 71.83 kB / 433.8 MB, free: 3.766 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.3765, allocations: 59.73 kB / 433.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.445e-05/0.3765, allocations: 12 kB / 433.9 MB, free: 3.695 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.29e-05/0.3766, allocations: 16 kB / 433.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.126e-05/0.3766, allocations: 35.91 kB / 433.9 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.721e-05/0.3767, allocations: 63.64 kB / 434 MB, free: 3.582 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002024/0.3769, allocations: 137.3 kB / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.3769, allocations: 0 / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.3769, allocations: 0 / 434.1 MB, free: 3.449 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.761e-06/0.3769, allocations: 0 / 434.1 MB, free: 3.449 MB / 334.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.0007035/0.3776, allocations: 425.1 kB / 434.5 MB, free: 2.992 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.742e-05/0.3776, allocations: 11.98 kB / 434.6 MB, free: 2.98 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.925e-05/0.3777, allocations: 42.73 kB / 434.6 MB, free: 2.93 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002146/0.3779, allocations: 28.83 kB / 434.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002744/0.3782, allocations: 166.1 kB / 434.8 MB, free: 2.719 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.417e-05/0.3782, allocations: 16.36 kB / 434.8 MB, free: 2.703 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.409e-05/0.3782, allocations: 15.94 kB / 434.8 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004211/0.3787, allocations: 161.5 kB / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.638e-06/0.3787, allocations: 0 / 435 MB, free: 2.523 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.745e-05/0.3787, allocations: 4 kB / 435 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.809e-06/0.3787, allocations: 0 / 435 MB, free: 2.52 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003225/0.379, allocations: 103.9 kB / 435.1 MB, free: 2.418 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006502/0.3797, allocations: 363.6 kB / 435.4 MB, free: 2.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005403/0.3802, allocations: 182.4 kB / 435.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002574/0.3805, allocations: 88.78 kB / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.845e-05/0.3805, allocations: 0 / 435.7 MB, free: 1.742 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004159/0.3809, allocations: 183.1 kB / 435.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.403e-06/0.3809, allocations: 0 / 435.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009489/0.3819, allocations: 345.3 kB / 436.2 MB, free: 1.207 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.275e-05/0.3819, allocations: 63.34 kB / 436.3 MB, free: 1.133 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001418/0.382, allocations: 145.8 kB / 436.4 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.292e-05/0.3821, allocations: 33.7 kB / 436.5 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.208e-05/0.3821, allocations: 100.5 kB / 436.6 MB, free: 0.8398 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.343e-05/0.3822, allocations: 39.69 kB / 436.6 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.795e-05/0.3823, allocations: 49.69 kB / 436.6 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.3824, allocations: 322.8 kB / 437 MB, free: 432 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001125/0.3825, allocations: 55.91 kB / 437 MB, free: 376 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001527/0.3826, allocations: 113.2 kB / 437.1 MB, free: 232 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002658/0.3829, allocations: 176.4 kB / 437.3 MB, free: 24 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.3829, allocations: 0 / 437.3 MB, free: 24 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003677/0.3833, allocations: 213.2 kB / 437.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.452e-05/0.3833, allocations: 4 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.484e-06/0.3833, allocations: 4.281 kB / 437.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.015e-05/0.3833, allocations: 11.94 kB / 437.5 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001563/0.3835, allocations: 31.92 kB / 437.6 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.147e-05/0.3835, allocations: 11.92 kB / 437.6 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.988e-05/0.3836, allocations: 19.89 kB / 437.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.635e-05/0.3836, allocations: 12 kB / 437.6 MB, free: 15.71 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.0001109/0.3837, allocations: 127.5 kB / 437.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.979e-05/0.3837, allocations: 19.89 kB / 437.7 MB, free: 15.56 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006707/0.3844, allocations: 282.2 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.975e-06/0.3844, allocations: 0 / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.853e-06/0.3844, allocations: 4 kB / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.306e-06/0.3844, allocations: 0 / 438 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000886/0.3853, allocations: 0.5431 MB / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.563e-06/0.3853, allocations: 0 / 438.6 MB, free: 14.69 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.613e-05/0.3854, allocations: 15.98 kB / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.014e-06/0.3854, allocations: 0 / 438.6 MB, free: 14.67 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.087e-05/0.3854, allocations: 11.98 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.3854, allocations: 0 / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.02e-07/0.3854, allocations: 4 kB / 438.6 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009841/0.3864, allocations: 479.1 kB / 439.1 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.742e-05/0.3864, allocations: 11.94 kB / 439.1 MB, free: 14.16 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.707e-05/0.3865, allocations: 8 kB / 439.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001818/0.3867, allocations: 31.95 kB / 439.1 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.309e-05/0.3867, allocations: 11.97 kB / 439.1 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.3867, allocations: 7.984 kB / 439.1 MB, free: 14.1 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.071e-05/0.3868, allocations: 106.6 kB / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3868, allocations: 0 / 439.2 MB, free: 14 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002725/0.3871, allocations: 39.98 kB / 439.3 MB, free: 13.96 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.00115/0.3882, allocations: 0.9738 MB / 440.3 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004196/0.3886, allocations: 170.7 kB / 440.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.434e-06/0.3886, allocations: 0 / 440.4 MB, free: 12.8 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002434/0.3889, allocations: 84.44 kB / 440.5 MB, free: 12.71 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002411/0.3891, allocations: 18.48 kB / 440.5 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00238/0.3915, allocations: 1.958 MB / 442.5 MB, free: 10.6 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 8.597e-05/0.3916, allocations: 89.62 kB / 442.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.719e-05/0.3916, allocations: 17.08 kB / 442.6 MB, free: 10.48 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.758e-05/0.3917, allocations: 39.42 kB / 442.6 MB, free: 10.44 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.3917, allocations: 7.875 kB / 442.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.376/0.7677, allocations: 3.358 MB / 446 MB, free: 7.168 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.01/12.78, allocations: 8 kB / 446 MB, free: 7.16 MB / 350.1 MB " [Timeout remaining time 647] (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/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_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: 19.520732812117785]