Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.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.001101/0.001101, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001384/0.001384, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.384/1.384, allocations: 230.6 MB / 258.3 MB, free: 8.016 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.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001572/0.001572, allocations: 47.94 kB / 378.6 MB, free: 3.133 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2455/0.2471, allocations: 53.36 MB / 431.9 MB, free: 6.855 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.003135/0.2502, allocations: 1.497 MB / 433.4 MB, free: 5.355 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001983/0.2504, allocations: 31.91 kB / 433.5 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.214e-05/0.2504, allocations: 0 / 433.5 MB, free: 5.324 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 3.288e-05/0.2505, allocations: 7.922 kB / 433.5 MB, free: 5.316 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 4.197e-05/0.2505, allocations: 7.938 kB / 433.5 MB, free: 5.309 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002364/0.2508, allocations: 19.97 kB / 433.5 MB, free: 5.289 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 9.123e-05/0.2508, allocations: 43.86 kB / 433.5 MB, free: 5.246 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.651e-05/0.2509, allocations: 11.98 kB / 433.5 MB, free: 5.234 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.124e-05/0.251, allocations: 8 kB / 433.6 MB, free: 5.227 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.841e-05/0.251, allocations: 31.8 kB / 433.6 MB, free: 5.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.828e-05/0.2511, allocations: 4 kB / 433.6 MB, free: 5.191 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.064e-05/0.2511, allocations: 4 kB / 433.6 MB, free: 5.188 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.181e-05/0.2511, allocations: 11.97 kB / 433.6 MB, free: 5.176 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 3.969e-05/0.2511, allocations: 11.94 kB / 433.6 MB, free: 5.164 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001072/0.2512, allocations: 44.88 kB / 433.7 MB, free: 5.121 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.911e-06/0.2512, allocations: 4 kB / 433.7 MB, free: 5.117 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.483e-06/0.2513, allocations: 4 kB / 433.7 MB, free: 5.113 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.2513, allocations: 0 / 433.7 MB, free: 5.113 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.0005/0.2518, allocations: 274 kB / 433.9 MB, free: 4.816 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.177e-05/0.2518, allocations: 12.03 kB / 433.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.643e-05/0.2518, allocations: 192 / 433.9 MB, free: 4.805 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.387e-05/0.2518, allocations: 34.75 kB / 434 MB, free: 4.762 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.371e-05/0.2519, allocations: 8.891 kB / 434 MB, free: 4.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002284/0.2521, allocations: 126.4 kB / 434.1 MB, free: 4.605 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.156e-05/0.2521, allocations: 8.375 kB / 434.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.806e-06/0.2521, allocations: 384 / 434.1 MB, free: 4.598 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006257/0.2528, allocations: 167.5 kB / 434.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.825e-06/0.2528, allocations: 0 / 434.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.095e-05/0.2528, allocations: 0 / 434.3 MB, free: 4.422 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.719e-06/0.2528, allocations: 3.938 kB / 434.3 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002556/0.253, allocations: 51.94 kB / 434.3 MB, free: 4.367 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001568/0.2532, allocations: 132.7 kB / 434.5 MB, free: 4.195 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003191/0.2535, allocations: 82.45 kB / 434.6 MB, free: 4.105 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001742/0.2537, allocations: 36.91 kB / 434.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.1e-05/0.2537, allocations: 4 kB / 434.6 MB, free: 4.062 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.2537, allocations: 38.48 kB / 434.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.022e-06/0.2537, allocations: 0 / 434.6 MB, free: 4.016 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0005103/0.2543, allocations: 113.6 kB / 434.7 MB, free: 3.898 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.457e-05/0.2543, allocations: 59.34 kB / 434.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.543e-05/0.2544, allocations: 105.8 kB / 434.9 MB, free: 3.715 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.908e-05/0.2544, allocations: 29.7 kB / 434.9 MB, free: 3.68 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.321e-05/0.2545, allocations: 80.14 kB / 435 MB, free: 3.598 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.022e-05/0.2545, allocations: 7.953 kB / 435 MB, free: 3.59 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.452e-05/0.2545, allocations: 17.7 kB / 435 MB, free: 3.566 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001319/0.2547, allocations: 314.8 kB / 435.3 MB, free: 3.25 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.599e-05/0.2547, allocations: 8 kB / 435.3 MB, free: 3.242 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.447e-05/0.2547, allocations: 31.42 kB / 435.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.962e-05/0.2548, allocations: 35.38 kB / 435.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.693e-06/0.2548, allocations: 4 kB / 435.4 MB, free: 3.148 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 9.749e-05/0.2549, allocations: 61.62 kB / 435.5 MB, free: 3.082 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.981e-05/0.2549, allocations: 11.94 kB / 435.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.578e-06/0.2549, allocations: 3.938 kB / 435.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.24e-05/0.2549, allocations: 192 / 435.5 MB, free: 3.066 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.153e-05/0.2549, allocations: 12.06 kB / 435.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.204e-06/0.255, allocations: 4 kB / 435.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.165e-05/0.255, allocations: 4 kB / 435.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.801e-06/0.255, allocations: 4.109 kB / 435.5 MB, free: 3.043 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 8.703e-05/0.2551, allocations: 117.8 kB / 435.6 MB, free: 2.918 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002988/0.2554, allocations: 93.52 kB / 435.7 MB, free: 2.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.631e-05/0.2554, allocations: 11.94 kB / 435.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.264e-06/0.2554, allocations: 0 / 435.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.426e-06/0.2554, allocations: 0 / 435.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.986e-06/0.2554, allocations: 0 / 435.7 MB, free: 2.801 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001103/0.2555, allocations: 132.7 kB / 435.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.2555, allocations: 0 / 435.9 MB, free: 2.629 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001033/0.2556, allocations: 23.91 kB / 435.9 MB, free: 2.605 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.468e-06/0.2556, allocations: 7.938 kB / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.604e-06/0.2556, allocations: 0 / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.834e-06/0.2556, allocations: 0 / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.2556, allocations: 0 / 435.9 MB, free: 2.598 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003253/0.256, allocations: 117 kB / 436 MB, free: 2.465 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.082e-05/0.256, allocations: 3.938 kB / 436 MB, free: 2.461 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.534e-05/0.256, allocations: 4 kB / 436 MB, free: 2.457 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.849e-05/0.2561, allocations: 7.984 kB / 436 MB, free: 2.449 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.575e-06/0.2561, allocations: 4 kB / 436 MB, free: 2.445 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.2561, allocations: 0 / 436 MB, free: 2.445 MB / 334.1 MB Notification: Performance of sorting global known variables: time 5.553e-05/0.2561, allocations: 91.27 kB / 436.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2561, allocations: 0 / 436.1 MB, free: 2.355 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001824/0.2563, allocations: 4 kB / 436.1 MB, free: 2.352 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.0008095/0.2571, allocations: 0.6905 MB / 436.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0002001/0.2573, allocations: 39.91 kB / 436.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.773e-06/0.2573, allocations: 0 / 436.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.2573, allocations: 0 / 436.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003647/0.2577, allocations: 43.98 kB / 436.9 MB, free: 1.551 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001158/0.2588, allocations: 1.193 MB / 438.1 MB, free: 264 kB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003172/0.2592, allocations: 0.6846 MB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 1.933e-05/0.2592, allocations: 3.938 kB / 438.8 MB, free: 15.54 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.359e-05/0.2592, allocations: 19.42 kB / 438.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of SimCode: time 6.21e-07/0.2592, allocations: 0 / 438.8 MB, free: 15.52 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02104/0.2803, allocations: 1.647 MB / 440.4 MB, free: 14.03 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.29/10.57, allocations: 34.98 kB / 440.5 MB, free: 14 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --stepSize=0.000199561 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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: 12.917392857023515]