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.001462/0.001462, allocations: 79.91 kB / 21.18 MB, free: 3.391 MB / 18.57 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.001928/0.001928, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 18.57 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.065/1.065, allocations: 173.4 MB / 201.1 MB, free: 8.98 MB / 186.7 MB " [Timeout remaining time 179] 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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5011,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.284e-06/2.284e-06, allocations: 3.938 kB / 268 MB, free: 6.277 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.225e-05/3.453e-05, allocations: 2.312 kB / 268 MB, free: 6.273 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.003495/0.00353, allocations: 1.506 MB / 269.5 MB, free: 4.762 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0003067/0.003837, allocations: 39.78 kB / 269.6 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001116/0.003948, allocations: 0 / 269.6 MB, free: 4.723 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 5.546e-05/0.004004, allocations: 3.938 kB / 269.6 MB, free: 4.719 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 7.324e-05/0.004077, allocations: 3.984 kB / 269.6 MB, free: 4.715 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004208/0.004498, allocations: 31.91 kB / 269.6 MB, free: 4.684 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001684/0.004666, allocations: 43.84 kB / 269.6 MB, free: 4.641 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001549/0.004821, allocations: 8 kB / 269.6 MB, free: 4.633 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001132/0.004934, allocations: 19.98 kB / 269.7 MB, free: 4.613 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.202e-05/0.004996, allocations: 19.91 kB / 269.7 MB, free: 4.594 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 3.808e-05/0.005034, allocations: 4 kB / 269.7 MB, free: 4.59 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.527e-05/0.005049, allocations: 4 kB / 269.7 MB, free: 4.586 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 2.876e-05/0.005078, allocations: 7.984 kB / 269.7 MB, free: 4.578 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 4.529e-05/0.005123, allocations: 8 kB / 269.7 MB, free: 4.57 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001446/0.005268, allocations: 23.91 kB / 269.7 MB, free: 4.547 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.416e-06/0.005272, allocations: 0 / 269.7 MB, free: 4.547 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.152e-06/0.005273, allocations: 8 kB / 269.7 MB, free: 4.539 MB / 250.7 MB Notification: Performance of Transformations before backend: time 8.476e-06/0.005281, allocations: 0 / 269.7 MB, free: 4.539 MB / 250.7 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.0005785/0.00586, allocations: 376.6 kB / 270.1 MB, free: 4.133 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.706e-05/0.005917, allocations: 8.922 kB / 270.1 MB, free: 4.125 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.857e-05/0.005975, allocations: 8.891 kB / 270.1 MB, free: 4.117 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002111/0.006186, allocations: 140.4 kB / 270.3 MB, free: 3.953 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.468e-05/0.006211, allocations: 4.375 kB / 270.3 MB, free: 3.949 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.413e-05/0.006225, allocations: 4.359 kB / 270.3 MB, free: 3.945 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003425/0.006568, allocations: 118.2 kB / 270.4 MB, free: 3.812 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.04e-05/0.006578, allocations: 192 / 270.4 MB, free: 3.812 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.317e-05/0.006591, allocations: 384 / 270.4 MB, free: 3.812 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.928e-06/0.006601, allocations: 4.375 kB / 270.4 MB, free: 3.809 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.86e-05/0.00665, allocations: 15.88 kB / 270.4 MB, free: 3.793 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.0068, allocations: 116.6 kB / 270.5 MB, free: 3.645 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001118/0.006912, allocations: 43.05 kB / 270.6 MB, free: 3.59 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.048e-05/0.006962, allocations: 23.75 kB / 270.6 MB, free: 3.562 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.327e-06/0.006971, allocations: 0 / 270.6 MB, free: 3.562 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.413e-05/0.007006, allocations: 37.39 kB / 270.6 MB, free: 3.516 MB / 250.7 MB Notification: Performance of pre-optimization done (n=4): time 1.002e-06/0.007007, allocations: 4 kB / 270.6 MB, free: 3.512 MB / 250.7 MB Notification: Performance of matching and sorting (n=4): time 0.0002008/0.007207, allocations: 53.62 kB / 270.7 MB, free: 3.453 MB / 250.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.9e-05/0.007276, allocations: 59.41 kB / 270.7 MB, free: 3.383 MB / 250.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001303/0.007407, allocations: 169.9 kB / 270.9 MB, free: 3.199 MB / 250.7 MB Notification: Performance of collectPreVariables (initialization): time 1.734e-05/0.007424, allocations: 25.7 kB / 270.9 MB, free: 3.168 MB / 250.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.176e-05/0.007496, allocations: 126.9 kB / 271 MB, free: 3.039 MB / 250.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.015e-05/0.007516, allocations: 0 / 271 MB, free: 3.039 MB / 250.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.649e-05/0.007562, allocations: 27.36 kB / 271.1 MB, free: 3.004 MB / 250.7 MB Notification: Performance of setup shared object (initialization): time 0.0001935/0.007756, allocations: 492.1 kB / 271.6 MB, free: 2.512 MB / 250.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.37e-05/0.007769, allocations: 4 kB / 271.6 MB, free: 2.508 MB / 250.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.466e-06/0.007778, allocations: 0 / 271.6 MB, free: 2.508 MB / 250.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.696e-05/0.007815, allocations: 23.69 kB / 271.6 MB, free: 2.48 MB / 250.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.006e-06/0.007818, allocations: 0 / 271.6 MB, free: 2.48 MB / 250.7 MB Notification: Performance of matching and sorting (n=2) (initialization): time 7.296e-05/0.007891, allocations: 41.64 kB / 271.6 MB, free: 2.434 MB / 250.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.112e-05/0.007912, allocations: 4 kB / 271.6 MB, free: 2.43 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.923e-06/0.007919, allocations: 0 / 271.6 MB, free: 2.43 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.047e-05/0.007939, allocations: 4 kB / 271.6 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.861e-05/0.008018, allocations: 0 / 271.6 MB, free: 2.426 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.076e-06/0.008026, allocations: 3.938 kB / 271.6 MB, free: 2.422 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.07e-05/0.008047, allocations: 7.938 kB / 271.6 MB, free: 2.414 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.26e-06/0.008052, allocations: 4.031 kB / 271.6 MB, free: 2.41 MB / 250.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * 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 (2): * Single equations (assignments): 2 * 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.000111/0.008163, allocations: 156.6 kB / 271.8 MB, free: 2.246 MB / 250.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.003e-05/0.008253, allocations: 57.62 kB / 271.9 MB, free: 2.184 MB / 250.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.87e-05/0.008302, allocations: 7.984 kB / 271.9 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.988e-06/0.008306, allocations: 0 / 271.9 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.852e-06/0.008313, allocations: 0 / 271.9 MB, free: 2.168 MB / 250.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.699e-06/0.008322, allocations: 4.172 kB / 271.9 MB, free: 2.164 MB / 250.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001008/0.008423, allocations: 120.6 kB / 272 MB, free: 2.012 MB / 250.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.056e-06/0.008426, allocations: 0 / 272 MB, free: 2.012 MB / 250.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001113/0.008537, allocations: 11.98 kB / 272 MB, free: 2 MB / 250.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.721e-06/0.008543, allocations: 8 kB / 272 MB, free: 1.992 MB / 250.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.294e-05/0.008556, allocations: 3.984 kB / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.008559, allocations: 0 / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.008561, allocations: 0 / 272 MB, free: 1.988 MB / 250.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001383/0.008699, allocations: 92.31 kB / 272.1 MB, free: 1.875 MB / 250.7 MB Notification: Performance of postOpt removeConstants (simulation): time 1.63e-05/0.008715, allocations: 7.953 kB / 272.1 MB, free: 1.867 MB / 250.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.221e-05/0.008738, allocations: 4 kB / 272.1 MB, free: 1.863 MB / 250.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.99e-05/0.008788, allocations: 7.984 kB / 272.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.359e-06/0.008792, allocations: 0 / 272.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.272e-06/0.008798, allocations: 0 / 272.1 MB, free: 1.855 MB / 250.7 MB Notification: Performance of sorting global known variables: time 6.451e-05/0.008863, allocations: 127.2 kB / 272.2 MB, free: 1.73 MB / 250.7 MB Notification: Performance of sort global known variables: time 1e-07/0.008863, allocations: 4 kB / 272.2 MB, free: 1.727 MB / 250.7 MB Notification: Performance of remove unused functions: time 0.0002139/0.009077, allocations: 4 kB / 272.2 MB, free: 1.723 MB / 250.7 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.0001621/0.009239, allocations: 103.2 kB / 272.3 MB, free: 1.613 MB / 250.7 MB Notification: Performance of simCode: created initialization part: time 0.0001433/0.009382, allocations: 15.69 kB / 272.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of simCode: created event and clocks part: time 2.555e-06/0.009385, allocations: 0 / 272.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of simCode: created simulation system equations: time 9.42e-07/0.009386, allocations: 0 / 272.4 MB, free: 1.594 MB / 250.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000348/0.009734, allocations: 32.45 kB / 272.4 MB, free: 1.562 MB / 250.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003559/0.01009, allocations: 120.8 kB / 272.5 MB, free: 1.418 MB / 250.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 4.367e-05/0.01013, allocations: 67.34 kB / 272.6 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: alias equations: time 1.922e-05/0.01015, allocations: 0 / 272.6 MB, free: 1.332 MB / 250.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.805e-05/0.01019, allocations: 16.5 kB / 272.6 MB, free: 1.316 MB / 250.7 MB Notification: Performance of SimCode: time 8.91e-07/0.01019, allocations: 0 / 272.6 MB, free: 1.316 MB / 250.7 MB Notification: Performance of Templates: time 0.003473/0.01366, allocations: 0.5739 MB / 273.2 MB, free: 0.75 MB / 250.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 2.916291886009276]