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.001623/0.001623, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002436/0.002436, allocations: 212 kB / 23.74 MB, free: 4.656 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.523/1.523, allocations: 230.6 MB / 257.5 MB, free: 8 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.001806/0.001806, allocations: 47.92 kB / 377.8 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3327/0.3345, allocations: 53.37 MB / 431.1 MB, free: 6.848 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.003119/0.3376, allocations: 1.755 MB / 432.9 MB, free: 5.09 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.3389, allocations: 0.67 MB / 433.6 MB, free: 4.414 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.9e-05/0.339, allocations: 7.938 kB / 433.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000135/0.3392, allocations: 19.8 kB / 433.6 MB, free: 4.387 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.666e-05/0.3392, allocations: 19.8 kB / 433.6 MB, free: 4.367 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003328/0.3395, allocations: 79.78 kB / 433.7 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002369/0.3398, allocations: 151.6 kB / 433.8 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001285/0.3399, allocations: 21.62 kB / 433.8 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002083/0.3401, allocations: 71.77 kB / 433.9 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001236/0.3402, allocations: 67.67 kB / 434 MB, free: 3.977 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.674e-05/0.3403, allocations: 12 kB / 434 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.773e-05/0.3403, allocations: 24 kB / 434 MB, free: 3.941 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.204e-05/0.3404, allocations: 35.89 kB / 434.1 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.786e-05/0.3405, allocations: 67.7 kB / 434.1 MB, free: 3.84 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002458/0.3407, allocations: 139.9 kB / 434.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.899e-06/0.3407, allocations: 0 / 434.3 MB, free: 3.711 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.134e-06/0.3407, allocations: 3.938 kB / 434.3 MB, free: 3.707 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.773e-06/0.3407, allocations: 0 / 434.3 MB, free: 3.707 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.0007955/0.3415, allocations: 417.2 kB / 434.7 MB, free: 3.258 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.61e-05/0.3416, allocations: 8.031 kB / 434.7 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.376e-05/0.3416, allocations: 42.75 kB / 434.7 MB, free: 3.199 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002387/0.3419, allocations: 32.81 kB / 434.7 MB, free: 3.168 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003211/0.3422, allocations: 165.6 kB / 434.9 MB, free: 2.984 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.029e-05/0.3422, allocations: 8.375 kB / 434.9 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.947e-05/0.3422, allocations: 15.94 kB / 434.9 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004453/0.3427, allocations: 165.5 kB / 435.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.688e-06/0.3427, allocations: 0 / 435.1 MB, free: 2.793 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.018e-05/0.3427, allocations: 4 kB / 435.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5e-06/0.3427, allocations: 0 / 435.1 MB, free: 2.789 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003352/0.3431, allocations: 103.8 kB / 435.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007625/0.3438, allocations: 395.5 kB / 435.6 MB, free: 2.258 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005635/0.3444, allocations: 190.4 kB / 435.8 MB, free: 2.062 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002643/0.3446, allocations: 84.78 kB / 435.9 MB, free: 1.977 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.097e-05/0.3447, allocations: 3.984 kB / 435.9 MB, free: 1.973 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004471/0.3451, allocations: 175.2 kB / 436 MB, free: 1.789 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.664e-06/0.3451, allocations: 0 / 436 MB, free: 1.789 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.001016/0.3461, allocations: 352.4 kB / 436.4 MB, free: 1.441 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.926e-05/0.3462, allocations: 59.34 kB / 436.4 MB, free: 1.371 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3464, allocations: 145.8 kB / 436.6 MB, free: 1.219 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.157e-05/0.3464, allocations: 33.7 kB / 436.6 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.992e-05/0.3465, allocations: 108.5 kB / 436.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.836e-05/0.3465, allocations: 43.69 kB / 436.8 MB, free: 1.027 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.057e-05/0.3466, allocations: 45.7 kB / 436.8 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001813/0.3468, allocations: 318.8 kB / 437.1 MB, free: 0.6562 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001218/0.3469, allocations: 47.97 kB / 437.2 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00019/0.3471, allocations: 116.5 kB / 437.3 MB, free: 476 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002909/0.3474, allocations: 168.4 kB / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.735e-06/0.3474, allocations: 0 / 437.4 MB, free: 276 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0004159/0.3478, allocations: 217.2 kB / 437.6 MB, free: 52 kB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.128e-05/0.3478, allocations: 4 kB / 437.7 MB, free: 48 kB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.706e-06/0.3478, allocations: 4 kB / 437.7 MB, free: 44 kB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.211e-05/0.3479, allocations: 7.938 kB / 437.7 MB, free: 36 kB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001829/0.348, allocations: 31.92 kB / 437.7 MB, free: 4 kB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.177e-05/0.3481, allocations: 12.02 kB / 437.7 MB, free: 15.99 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000102/0.3482, allocations: 20.17 kB / 437.7 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.888e-05/0.3482, allocations: 15.94 kB / 437.7 MB, free: 15.95 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.0001476/0.3483, allocations: 135.5 kB / 437.9 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.475e-05/0.3484, allocations: 19.91 kB / 437.9 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007131/0.3491, allocations: 278.2 kB / 438.2 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.3491, allocations: 7.938 kB / 438.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.081e-06/0.3491, allocations: 0 / 438.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.979e-06/0.3491, allocations: 0 / 438.2 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001023/0.3501, allocations: 0.5403 MB / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.3501, allocations: 0 / 438.7 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001083/0.3502, allocations: 15.98 kB / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.447e-06/0.3502, allocations: 0 / 438.7 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.101e-05/0.3503, allocations: 7.984 kB / 438.7 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.318e-06/0.3503, allocations: 4 kB / 438.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.3503, allocations: 3.938 kB / 438.7 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001051/0.3513, allocations: 470.5 kB / 439.2 MB, free: 14.42 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.955e-05/0.3513, allocations: 19.92 kB / 439.2 MB, free: 14.4 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.079e-05/0.3514, allocations: 8 kB / 439.2 MB, free: 14.39 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000202/0.3516, allocations: 23.97 kB / 439.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.607e-05/0.3516, allocations: 11.97 kB / 439.3 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.689e-05/0.3517, allocations: 8 kB / 439.3 MB, free: 14.35 MB / 350.1 MB Notification: Performance of sorting global known variables: time 9.231e-05/0.3518, allocations: 113.1 kB / 439.4 MB, free: 14.24 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3518, allocations: 4.062 kB / 439.4 MB, free: 14.23 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003095/0.3521, allocations: 35.94 kB / 439.4 MB, free: 14.2 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.001257/0.3533, allocations: 0.9699 MB / 440.4 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004792/0.3538, allocations: 168.3 kB / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.3538, allocations: 0 / 440.6 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002569/0.3541, allocations: 87.84 kB / 440.6 MB, free: 12.95 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002749/0.3543, allocations: 14.5 kB / 440.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002838/0.3572, allocations: 1.957 MB / 442.6 MB, free: 10.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003849/0.3576, allocations: 0.7162 MB / 443.3 MB, free: 10.11 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 6.119e-05/0.3576, allocations: 13.08 kB / 443.3 MB, free: 10.09 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.014e-05/0.3577, allocations: 39.41 kB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of SimCode: time 8.22e-07/0.3577, allocations: 4 kB / 443.4 MB, free: 10.05 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03621/0.3939, allocations: 2.97 MB / 446.4 MB, free: 7.207 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.5, allocations: 4.75 kB / 446.4 MB, free: 7.203 MB / 350.1 MB " [Timeout remaining time 648] (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: 17.54211100214161]