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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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=5000,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=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007501/0.0007501, allocations: 93.31 kB / 17.31 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008518/0.0008519, allocations: 175.5 kB / 18.21 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.275/1.275, allocations: 223.3 MB / 242.2 MB, free: 212 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003109/0.000311, allocations: 8 kB / 302.1 MB, free: 6.105 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08301/0.08334, allocations: 50.41 MB / 352.5 MB, free: 3.684 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001354/0.08471, allocations: 1.178 MB / 353.7 MB, free: 2.492 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001469/0.08487, allocations: 39.84 kB / 353.7 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 4.663e-05/0.08493, allocations: 0 / 353.7 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 1.319e-05/0.08495, allocations: 0 / 353.7 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 4.001e-05/0.085, allocations: 7.922 kB / 353.7 MB, free: 2.445 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002053/0.08521, allocations: 20 kB / 353.7 MB, free: 2.426 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 6.944e-05/0.08529, allocations: 43.89 kB / 353.8 MB, free: 2.383 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 7.681e-05/0.08537, allocations: 8 kB / 353.8 MB, free: 2.375 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 4.324e-05/0.08542, allocations: 15.92 kB / 353.8 MB, free: 2.359 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 3.555e-05/0.08546, allocations: 15.92 kB / 353.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.383e-05/0.08548, allocations: 0 / 353.8 MB, free: 2.344 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.316e-06/0.0855, allocations: 4 kB / 353.8 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.59e-05/0.08552, allocations: 3.938 kB / 353.8 MB, free: 2.336 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.428e-05/0.08557, allocations: 45.61 kB / 353.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 5.807e-05/0.08563, allocations: 23.95 kB / 353.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.264e-06/0.08564, allocations: 0 / 353.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of FrontEnd: time 8.81e-07/0.08564, allocations: 0 / 353.9 MB, free: 2.262 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.685e-06/0.08565, allocations: 4 kB / 353.9 MB, free: 2.258 MB / 286.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.0004104/0.08607, allocations: 351.6 kB / 354.2 MB, free: 1.863 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.192e-05/0.08611, allocations: 12.03 kB / 354.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.675e-05/0.08614, allocations: 4.844 kB / 354.3 MB, free: 1.848 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001379/0.08628, allocations: 176.4 kB / 354.4 MB, free: 1.637 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.946e-05/0.08631, allocations: 4.375 kB / 354.4 MB, free: 1.633 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.332e-05/0.08633, allocations: 4.375 kB / 354.4 MB, free: 1.629 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005701/0.0869, allocations: 163.7 kB / 354.6 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.031e-06/0.08692, allocations: 192 / 354.6 MB, free: 1.457 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.239e-05/0.08694, allocations: 7.922 kB / 354.6 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.018e-06/0.08694, allocations: 0 / 354.6 MB, free: 1.449 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002708/0.08722, allocations: 47.95 kB / 354.7 MB, free: 1.402 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001266/0.08736, allocations: 173.5 kB / 354.8 MB, free: 1.184 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003333/0.0877, allocations: 86.52 kB / 354.9 MB, free: 1.09 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001574/0.08786, allocations: 40.91 kB / 355 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 9.859e-06/0.08788, allocations: 0 / 355 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.055e-05/0.08791, allocations: 34.56 kB / 355 MB, free: 1.004 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 9.72e-07/0.08791, allocations: 0 / 355 MB, free: 1.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004941/0.08841, allocations: 129.6 kB / 355.1 MB, free: 0.8711 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.138e-05/0.08846, allocations: 51.41 kB / 355.2 MB, free: 0.8086 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.619e-05/0.08854, allocations: 109.8 kB / 355.3 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.519e-05/0.08856, allocations: 37.7 kB / 355.3 MB, free: 0.6484 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 2.803e-05/0.08859, allocations: 80.14 kB / 355.4 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.213e-05/0.08861, allocations: 3.938 kB / 355.4 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.282e-05/0.08864, allocations: 13.72 kB / 355.4 MB, free: 0.543 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 8.329e-05/0.08873, allocations: 318.8 kB / 355.7 MB, free: 228 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.492e-05/0.08875, allocations: 8 kB / 355.7 MB, free: 220 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.562e-05/0.08878, allocations: 27.38 kB / 355.7 MB, free: 180 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.16e-05/0.08883, allocations: 43.36 kB / 355.8 MB, free: 124 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.774e-06/0.08884, allocations: 0 / 355.8 MB, free: 124 kB / 286.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.704e-05/0.08893, allocations: 65.53 kB / 355.9 MB, free: 52 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.08895, allocations: 8.062 kB / 355.9 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.44e-06/0.08896, allocations: 7.938 kB / 355.9 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.026e-05/0.08897, allocations: 4 kB / 355.9 MB, free: 32 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.284e-05/0.08903, allocations: 4 kB / 355.9 MB, free: 28 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.338e-06/0.08904, allocations: 4 kB / 355.9 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.94e-05/0.08907, allocations: 0 / 355.9 MB, free: 24 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.051e-06/0.08908, allocations: 4.125 kB / 355.9 MB, free: 20 kB / 286.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 7.721e-05/0.08916, allocations: 117.8 kB / 356 MB, free: 15.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003043/0.08947, allocations: 93.56 kB / 356.1 MB, free: 15.8 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.576e-05/0.08951, allocations: 15.84 kB / 356.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.503e-06/0.08951, allocations: 0 / 356.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.145e-06/0.08952, allocations: 0 / 356.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.134e-06/0.08953, allocations: 0 / 356.1 MB, free: 15.77 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.41e-05/0.08962, allocations: 161.6 kB / 356.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.102e-06/0.08962, allocations: 0 / 356.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001019/0.08973, allocations: 19.97 kB / 356.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.803e-06/0.08974, allocations: 0 / 356.3 MB, free: 15.55 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.468e-06/0.08976, allocations: 7.938 kB / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.222e-06/0.08976, allocations: 0 / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.08977, allocations: 0 / 356.3 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003291/0.0901, allocations: 117.8 kB / 356.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.014e-05/0.09014, allocations: 85.02 kB / 356.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.573e-05/0.09016, allocations: 3.938 kB / 356.5 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.933e-05/0.09025, allocations: 15.98 kB / 356.5 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.314e-06/0.09026, allocations: 3.938 kB / 356.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.989e-06/0.09027, allocations: 0 / 356.5 MB, free: 15.28 MB / 302.1 MB Notification: Performance of sorting global known variables: time 3.769e-05/0.09031, allocations: 83.27 kB / 356.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.333e-06/0.09032, allocations: 0 / 356.6 MB, free: 15.2 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001981/0.09052, allocations: 19.94 kB / 356.6 MB, free: 15.18 MB / 302.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 6.837e-05/0.09059, allocations: 103.1 kB / 356.7 MB, free: 15.07 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001997/0.0908, allocations: 39.91 kB / 356.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-06/0.09081, allocations: 0 / 356.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.51e-07/0.09082, allocations: 0 / 356.8 MB, free: 15.03 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003686/0.09119, allocations: 55.14 kB / 356.8 MB, free: 14.98 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003392/0.09154, allocations: 166.7 kB / 357 MB, free: 14.79 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000181/0.09174, allocations: 0.6809 MB / 357.7 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.239e-05/0.09177, allocations: 7.438 kB / 357.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.09177, allocations: 0 / 357.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of Templates: time 0.001716/0.0935, allocations: 0.6937 MB / 358.4 MB, free: 13.39 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.makefile (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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) 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) Reference file matches