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.001753/0.001753, allocations: 111.1 kB / 20.44 MB, free: 1.176 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.002026/0.002026, allocations: 201.2 kB / 23.73 MB, free: 4.379 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.46/1.46, allocations: 230.6 MB / 257.5 MB, free: 7.789 MB / 206.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: "" <> 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 0.00192/0.00192, allocations: 43.94 kB / 377.7 MB, free: 2.973 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3213/0.3232, allocations: 53.37 MB / 431.1 MB, free: 6.633 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002941/0.3262, allocations: 1.696 MB / 432.8 MB, free: 4.934 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001186/0.3273, allocations: 0.6195 MB / 433.4 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.446e-05/0.3274, allocations: 7.938 kB / 433.4 MB, free: 4.301 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001149/0.3275, allocations: 15.8 kB / 433.4 MB, free: 4.285 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.683e-05/0.3276, allocations: 15.8 kB / 433.4 MB, free: 4.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003015/0.3279, allocations: 91.75 kB / 433.5 MB, free: 4.18 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001928/0.3281, allocations: 147.6 kB / 433.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001108/0.3282, allocations: 29.36 kB / 433.7 MB, free: 4.004 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000157/0.3284, allocations: 71.75 kB / 433.8 MB, free: 3.934 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001066/0.3285, allocations: 67.75 kB / 433.8 MB, free: 3.867 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.478e-05/0.3285, allocations: 15.94 kB / 433.8 MB, free: 3.852 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.835e-05/0.3285, allocations: 23.98 kB / 433.9 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.843e-05/0.3286, allocations: 31.92 kB / 433.9 MB, free: 3.797 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.639e-05/0.3286, allocations: 55.77 kB / 434 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001962/0.3288, allocations: 137.3 kB / 434.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.3288, allocations: 0 / 434.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.3288, allocations: 0 / 434.1 MB, free: 3.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.3289, allocations: 0 / 434.1 MB, free: 3.609 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.0006939/0.3295, allocations: 425.2 kB / 434.5 MB, free: 3.152 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.745e-05/0.3296, allocations: 8.031 kB / 434.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.382e-05/0.3296, allocations: 38.75 kB / 434.5 MB, free: 3.098 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002256/0.3299, allocations: 32.81 kB / 434.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002671/0.3301, allocations: 166 kB / 434.7 MB, free: 2.883 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.754e-05/0.3302, allocations: 8.375 kB / 434.8 MB, free: 2.875 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.829e-05/0.3302, allocations: 23.86 kB / 434.8 MB, free: 2.852 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004378/0.3306, allocations: 165.5 kB / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.325e-06/0.3306, allocations: 0 / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.68e-05/0.3307, allocations: 0 / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.278e-06/0.3307, allocations: 0 / 434.9 MB, free: 2.684 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003385/0.331, allocations: 103.8 kB / 435 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006448/0.3316, allocations: 363.6 kB / 435.4 MB, free: 2.184 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00055/0.3322, allocations: 186.4 kB / 435.6 MB, free: 1.992 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002715/0.3325, allocations: 92.78 kB / 435.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.748e-05/0.3325, allocations: 0 / 435.7 MB, free: 1.898 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004181/0.3329, allocations: 175.2 kB / 435.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.723e-06/0.3329, allocations: 0 / 435.8 MB, free: 1.715 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001004/0.3339, allocations: 343.8 kB / 436.2 MB, free: 1.375 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.712e-05/0.334, allocations: 71.33 kB / 436.2 MB, free: 1.293 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001269/0.3341, allocations: 137.8 kB / 436.4 MB, free: 1.148 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.808e-05/0.3341, allocations: 37.69 kB / 436.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.262e-05/0.3342, allocations: 104.5 kB / 436.5 MB, free: 1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.712e-05/0.3342, allocations: 43.67 kB / 436.6 MB, free: 0.957 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.263e-05/0.3343, allocations: 41.7 kB / 436.6 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001398/0.3344, allocations: 330.8 kB / 436.9 MB, free: 0.5781 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001121/0.3346, allocations: 47.97 kB / 437 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001649/0.3347, allocations: 116.6 kB / 437.1 MB, free: 396 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002813/0.335, allocations: 176.4 kB / 437.3 MB, free: 188 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.335, allocations: 0 / 437.3 MB, free: 188 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0003905/0.3354, allocations: 213.3 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.666e-05/0.3354, allocations: 7.938 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.825e-06/0.3354, allocations: 4 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.071e-05/0.3354, allocations: 8.219 kB / 437.5 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001672/0.3356, allocations: 35.92 kB / 437.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.338e-06/0.3356, allocations: 4 kB / 437.5 MB, free: 15.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001012/0.3357, allocations: 23.88 kB / 437.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.622e-05/0.3357, allocations: 8 kB / 437.6 MB, free: 15.88 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.0001309/0.3359, allocations: 131.5 kB / 437.7 MB, free: 15.74 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.951e-05/0.3359, allocations: 15.91 kB / 437.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007221/0.3366, allocations: 290.1 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.517e-06/0.3366, allocations: 0 / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.072e-06/0.3366, allocations: 3.984 kB / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.576e-06/0.3366, allocations: 0 / 438 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009839/0.3376, allocations: 0.5324 MB / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.204e-06/0.3376, allocations: 0 / 438.5 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001101/0.3377, allocations: 15.98 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.826e-06/0.3377, allocations: 0 / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.919e-05/0.3378, allocations: 4 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.874e-06/0.3378, allocations: 3.938 kB / 438.5 MB, free: 14.83 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.3378, allocations: 3.984 kB / 438.5 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009901/0.3387, allocations: 490.4 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.941e-05/0.3388, allocations: 11.94 kB / 439 MB, free: 14.32 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.914e-05/0.3388, allocations: 8 kB / 439 MB, free: 14.31 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001841/0.339, allocations: 27.95 kB / 439.1 MB, free: 14.29 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.319e-05/0.339, allocations: 11.98 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.823e-05/0.339, allocations: 7.984 kB / 439.1 MB, free: 14.27 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.76e-05/0.3391, allocations: 105.1 kB / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3391, allocations: 0 / 439.2 MB, free: 14.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002865/0.3394, allocations: 31.94 kB / 439.2 MB, free: 14.13 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.001202/0.3406, allocations: 0.9817 MB / 440.2 MB, free: 13.12 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004466/0.3411, allocations: 167.8 kB / 440.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3411, allocations: 0 / 440.4 MB, free: 12.96 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002529/0.3413, allocations: 84.44 kB / 440.5 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002542/0.3416, allocations: 14.66 kB / 440.5 MB, free: 12.87 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002568/0.3441, allocations: 1.965 MB / 442.4 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.476e-05/0.3442, allocations: 89.62 kB / 442.5 MB, free: 10.66 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.202e-05/0.3443, allocations: 21.02 kB / 442.5 MB, free: 10.64 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.108e-05/0.3444, allocations: 39.42 kB / 442.6 MB, free: 10.6 MB / 350.1 MB Notification: Performance of SimCode: time 1.062e-06/0.3444, allocations: 3.938 kB / 442.6 MB, free: 10.59 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03541/0.3798, allocations: 3.39 MB / 446 MB, free: 7.332 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.53/10.91, allocations: 2.75 kB / 446 MB, free: 7.332 MB / 350.1 MB " [Timeout remaining time 649] (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/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: 16.491351213975577]