Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001253/0.001253, allocations: 109.5 kB / 20.43 MB, free: 1.457 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001382/0.001382, allocations: 184.5 kB / 23.72 MB, free: 4.699 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.417/1.417, allocations: 225.6 MB / 252.5 MB, free: 13.02 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001567/0.001567, allocations: 47.91 kB / 370.4 MB, free: 9.832 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.256, allocations: 52.19 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.00274/0.2587, allocations: 1.478 MB / 424.1 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001953/0.2589, allocations: 35.91 kB / 424.2 MB, free: 13.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.807e-05/0.259, allocations: 3.938 kB / 424.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 2.625e-05/0.259, allocations: 0 / 424.2 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.389e-05/0.2591, allocations: 7.922 kB / 424.2 MB, free: 13.05 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002459/0.2593, allocations: 27.97 kB / 424.2 MB, free: 13.03 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001058/0.2594, allocations: 35.92 kB / 424.2 MB, free: 12.99 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.229e-05/0.2595, allocations: 7.984 kB / 424.2 MB, free: 12.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.291e-05/0.2596, allocations: 15.94 kB / 424.2 MB, free: 12.97 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.671e-05/0.2596, allocations: 15.92 kB / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.176e-05/0.2596, allocations: 4 kB / 424.3 MB, free: 12.95 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.004e-05/0.2596, allocations: 8 kB / 424.3 MB, free: 12.94 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.568e-05/0.2597, allocations: 19.84 kB / 424.3 MB, free: 12.92 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.665e-05/0.2597, allocations: 11.94 kB / 424.3 MB, free: 12.91 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001031/0.2598, allocations: 43.25 kB / 424.3 MB, free: 12.87 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.557e-06/0.2598, allocations: 3.938 kB / 424.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.353e-06/0.2598, allocations: 0 / 424.4 MB, free: 12.87 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.862e-06/0.2598, allocations: 4 kB / 424.4 MB, free: 12.86 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005042/0.2603, allocations: 275.3 kB / 424.6 MB, free: 12.56 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.652e-05/0.2604, allocations: 8.031 kB / 424.6 MB, free: 12.55 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.727e-05/0.2604, allocations: 38.75 kB / 424.7 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.556e-05/0.2604, allocations: 4.938 kB / 424.7 MB, free: 12.5 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002071/0.2606, allocations: 130.4 kB / 424.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.627e-05/0.2606, allocations: 384 / 424.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.449e-05/0.2607, allocations: 4.375 kB / 424.8 MB, free: 12.35 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005357/0.2612, allocations: 151.7 kB / 425 MB, free: 12.19 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.005e-05/0.2612, allocations: 7.938 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.197e-05/0.2612, allocations: 3.984 kB / 425 MB, free: 12.18 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.308e-06/0.2612, allocations: 4 kB / 425 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002309/0.2614, allocations: 43.95 kB / 425 MB, free: 12.13 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001467/0.2616, allocations: 128.7 kB / 425.1 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000299/0.2619, allocations: 86.44 kB / 425.2 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001467/0.262, allocations: 44.89 kB / 425.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.257e-05/0.262, allocations: 0 / 425.3 MB, free: 11.82 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.338e-05/0.2621, allocations: 34.56 kB / 425.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 8.91e-07/0.2621, allocations: 0 / 425.3 MB, free: 11.78 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004667/0.2625, allocations: 125.4 kB / 425.4 MB, free: 11.65 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.206e-05/0.2626, allocations: 55.41 kB / 425.5 MB, free: 11.58 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.75e-05/0.2627, allocations: 113.8 kB / 425.6 MB, free: 11.46 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.732e-05/0.2627, allocations: 25.7 kB / 425.6 MB, free: 11.43 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.912e-05/0.2628, allocations: 80.14 kB / 425.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.434e-05/0.2628, allocations: 11.94 kB / 425.7 MB, free: 11.34 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.148e-05/0.2628, allocations: 13.72 kB / 425.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001612/0.263, allocations: 322.8 kB / 426 MB, free: 10.99 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.348e-05/0.263, allocations: 4 kB / 426 MB, free: 10.99 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.701e-05/0.263, allocations: 35.42 kB / 426.1 MB, free: 10.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.816e-05/0.2631, allocations: 39.38 kB / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.483e-06/0.2631, allocations: 0 / 426.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.084e-05/0.2632, allocations: 61.58 kB / 426.2 MB, free: 10.82 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.601e-05/0.2632, allocations: 11.94 kB / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.399e-06/0.2632, allocations: 320 / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.641e-05/0.2632, allocations: 4 kB / 426.2 MB, free: 10.81 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.298e-05/0.2633, allocations: 12.06 kB / 426.2 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.005e-06/0.2633, allocations: 4 kB / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.843e-05/0.2633, allocations: 0 / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.308e-06/0.2633, allocations: 7.984 kB / 426.2 MB, free: 10.79 MB / 334.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 2 ($CLKPRE.ramp.counter,ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 9.469e-05/0.2634, allocations: 109.8 kB / 426.3 MB, free: 10.67 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002785/0.2637, allocations: 93.56 kB / 426.4 MB, free: 10.57 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.675e-05/0.2637, allocations: 4 kB / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.643e-06/0.2637, allocations: 0 / 426.4 MB, free: 10.56 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.2637, allocations: 3.938 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.524e-06/0.2637, allocations: 4 kB / 426.4 MB, free: 10.55 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001138/0.2638, allocations: 136.7 kB / 426.6 MB, free: 10.38 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.2638, allocations: 4 kB / 426.6 MB, free: 10.37 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.382e-05/0.2639, allocations: 15.97 kB / 426.6 MB, free: 10.36 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.827e-06/0.2639, allocations: 3.938 kB / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.953e-06/0.2639, allocations: 0 / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.2639, allocations: 0 / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.825e-06/0.2639, allocations: 4 kB / 426.6 MB, free: 10.35 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003/0.2642, allocations: 117 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.028e-05/0.2643, allocations: 7.953 kB / 426.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.692e-05/0.2643, allocations: 3.938 kB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.202e-05/0.2643, allocations: 7.984 kB / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.464e-06/0.2643, allocations: 128 / 426.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.917e-06/0.2643, allocations: 8 kB / 426.7 MB, free: 10.19 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.341e-05/0.2644, allocations: 87.27 kB / 426.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2644, allocations: 0 / 426.8 MB, free: 10.1 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001835/0.2646, allocations: 7.938 kB / 426.8 MB, free: 10.09 MB / 334.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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 Backend phase and start with SimCode phase: time 0.0007599/0.2653, allocations: 0.683 MB / 427.5 MB, free: 9.383 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001963/0.2655, allocations: 43.91 kB / 427.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2655, allocations: 0 / 427.5 MB, free: 9.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 6.31e-07/0.2655, allocations: 3.938 kB / 427.5 MB, free: 9.336 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003505/0.2659, allocations: 52.22 kB / 427.6 MB, free: 9.285 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001192/0.2671, allocations: 1.189 MB / 428.8 MB, free: 7.996 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003155/0.2674, allocations: 0.6883 MB / 429.5 MB, free: 7.281 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.14e-05/0.2674, allocations: 4 kB / 429.5 MB, free: 7.277 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.432e-05/0.2675, allocations: 15.42 kB / 429.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of SimCode: time 2.81e-07/0.2675, allocations: 0 / 429.5 MB, free: 7.262 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03516/0.3026, allocations: 1.612 MB / 431.1 MB, free: 5.789 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.51/10.81, allocations: 12.67 kB / 431.1 MB, free: 5.785 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 13.151338304160163]