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.001438/0.001438, allocations: 112.5 kB / 20.43 MB, free: 1.453 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.0016/0.0016, allocations: 212.1 kB / 23.74 MB, free: 4.66 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.436/1.436, allocations: 230.5 MB / 257.4 MB, free: 8.008 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.002076/0.002076, allocations: 59.91 kB / 377.8 MB, free: 3.023 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2646/0.2667, allocations: 53.42 MB / 431.2 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.DemonstrateSignalExtrema): time 0.002976/0.2697, allocations: 1.735 MB / 432.9 MB, free: 4.945 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001201/0.2709, allocations: 0.6778 MB / 433.6 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.355e-05/0.2709, allocations: 4 kB / 433.6 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001183/0.2711, allocations: 15.8 kB / 433.6 MB, free: 4.242 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 5.18e-05/0.2711, allocations: 19.78 kB / 433.6 MB, free: 4.223 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003078/0.2714, allocations: 95.7 kB / 433.7 MB, free: 4.129 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002278/0.2716, allocations: 147.6 kB / 433.9 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001138/0.2718, allocations: 25.61 kB / 433.9 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001512/0.2719, allocations: 63.78 kB / 434 MB, free: 3.891 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001099/0.272, allocations: 71.67 kB / 434 MB, free: 3.82 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.348e-05/0.272, allocations: 12 kB / 434 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.251e-05/0.2721, allocations: 23.98 kB / 434.1 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.321e-05/0.2721, allocations: 31.91 kB / 434.1 MB, free: 3.754 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7e-05/0.2722, allocations: 63.72 kB / 434.2 MB, free: 3.691 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002291/0.2724, allocations: 138.9 kB / 434.3 MB, free: 3.562 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.599e-06/0.2724, allocations: 4 kB / 434.3 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.2724, allocations: 0 / 434.3 MB, free: 3.559 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.031e-06/0.2725, allocations: 0 / 434.3 MB, free: 3.559 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.0006601/0.2731, allocations: 414.2 kB / 434.7 MB, free: 3.113 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.646e-05/0.2732, allocations: 12.03 kB / 434.7 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.218e-05/0.2732, allocations: 42.73 kB / 434.8 MB, free: 3.051 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002086/0.2734, allocations: 32.77 kB / 434.8 MB, free: 3.02 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002378/0.2737, allocations: 166.4 kB / 434.9 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.753e-05/0.2737, allocations: 12.36 kB / 435 MB, free: 2.824 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.23e-05/0.2737, allocations: 15.94 kB / 435 MB, free: 2.809 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004291/0.2741, allocations: 160.2 kB / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.187e-06/0.2741, allocations: 0 / 435.1 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.734e-05/0.2742, allocations: 4 kB / 435.1 MB, free: 2.645 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.128e-06/0.2742, allocations: 4 kB / 435.1 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003146/0.2745, allocations: 107.8 kB / 435.2 MB, free: 2.535 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006934/0.2752, allocations: 391.5 kB / 435.6 MB, free: 2.109 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005681/0.2757, allocations: 194.3 kB / 435.8 MB, free: 1.91 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002599/0.276, allocations: 88.78 kB / 435.9 MB, free: 1.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.525e-05/0.276, allocations: 4 kB / 435.9 MB, free: 1.816 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004208/0.2764, allocations: 179.1 kB / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.413e-06/0.2764, allocations: 0 / 436.1 MB, free: 1.629 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0009328/0.2774, allocations: 348.7 kB / 436.4 MB, free: 1.285 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.985e-05/0.2774, allocations: 63.33 kB / 436.5 MB, free: 1.211 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001228/0.2775, allocations: 141.8 kB / 436.6 MB, free: 1.062 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.589e-05/0.2776, allocations: 33.7 kB / 436.7 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.393e-05/0.2776, allocations: 108.5 kB / 436.8 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.514e-05/0.2777, allocations: 39.67 kB / 436.8 MB, free: 0.875 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.887e-05/0.2778, allocations: 45.7 kB / 436.8 MB, free: 0.8242 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000135/0.2779, allocations: 330.8 kB / 437.2 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001099/0.278, allocations: 43.97 kB / 437.2 MB, free: 460 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001645/0.2782, allocations: 117.1 kB / 437.3 MB, free: 312 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000274/0.2785, allocations: 176.4 kB / 437.5 MB, free: 104 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.165e-06/0.2785, allocations: 0 / 437.5 MB, free: 104 kB / 334.1 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.000413/0.2789, allocations: 209.7 kB / 437.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.454e-05/0.2789, allocations: 8 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.584e-06/0.2789, allocations: 4 kB / 437.7 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.675e-05/0.2789, allocations: 7.75 kB / 437.7 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001654/0.2791, allocations: 39.91 kB / 437.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.466e-06/0.2791, allocations: 4 kB / 437.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.96e-05/0.2792, allocations: 15.89 kB / 437.8 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.96e-05/0.2792, allocations: 15.98 kB / 437.8 MB, free: 15.8 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.0001207/0.2793, allocations: 131.5 kB / 437.9 MB, free: 15.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.42e-05/0.2794, allocations: 19.91 kB / 437.9 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006518/0.28, allocations: 278.1 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.795e-06/0.28, allocations: 0 / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.346e-06/0.28, allocations: 0 / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.788e-06/0.28, allocations: 8 kB / 438.2 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0009602/0.281, allocations: 0.5363 MB / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.717e-06/0.281, allocations: 4 kB / 438.8 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.401e-05/0.2811, allocations: 15.98 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.258e-06/0.2811, allocations: 4 kB / 438.8 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.974e-05/0.2811, allocations: 11.92 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.2811, allocations: 0 / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.775e-06/0.2811, allocations: 4 kB / 438.8 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001008/0.2821, allocations: 467.1 kB / 439.3 MB, free: 14.26 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.986e-05/0.2822, allocations: 11.94 kB / 439.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.918e-05/0.2822, allocations: 12 kB / 439.3 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001856/0.2824, allocations: 32.02 kB / 439.3 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.897e-05/0.2824, allocations: 11.98 kB / 439.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.554e-05/0.2825, allocations: 7.984 kB / 439.3 MB, free: 14.18 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001234/0.2826, allocations: 110.2 kB / 439.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2826, allocations: 3.938 kB / 439.4 MB, free: 14.07 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002682/0.2829, allocations: 31.94 kB / 439.5 MB, free: 14.04 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.001243/0.2841, allocations: 0.9812 MB / 440.5 MB, free: 13.04 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0004067/0.2845, allocations: 159.7 kB / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.743e-06/0.2845, allocations: 0 / 440.6 MB, free: 12.88 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002435/0.2848, allocations: 92.5 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002304/0.285, allocations: 8 kB / 440.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002491/0.2875, allocations: 1.95 MB / 442.7 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003203/0.2878, allocations: 0.7084 MB / 443.4 MB, free: 9.961 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.321e-05/0.2878, allocations: 13.08 kB / 443.4 MB, free: 9.949 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.171e-05/0.2879, allocations: 47.36 kB / 443.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2879, allocations: 0 / 443.4 MB, free: 9.902 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03246/0.3204, allocations: 2.98 MB / 446.4 MB, free: 7.027 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.01/11.33, allocations: 11.91 kB / 446.4 MB, free: 7.016 MB / 350.1 MB " [Timeout remaining time 649] (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: 16.907541979802772]