Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.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.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001204/0.001204, allocations: 111.1 kB / 16.51 MB, free: 6.707 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.001257/0.001257, allocations: 190.5 kB / 17.43 MB, free: 6.066 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.474/1.474, allocations: 222.9 MB / 241.1 MB, free: 15.43 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001954/0.001954, allocations: 46.75 kB / 300 MB, free: 6.273 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1217, allocations: 49.44 MB / 349.4 MB, free: 4.832 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.003683/0.1254, allocations: 1.534 MB / 350.9 MB, free: 3.281 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007603/0.1262, allocations: 411.1 kB / 351.3 MB, free: 2.875 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.483e-05/0.1263, allocations: 3.938 kB / 351.3 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.431e-05/0.1264, allocations: 0 / 351.3 MB, free: 2.871 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 8.78e-05/0.1265, allocations: 11.92 kB / 351.3 MB, free: 2.859 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002642/0.1268, allocations: 19.98 kB / 351.4 MB, free: 2.84 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.485e-05/0.1269, allocations: 39.86 kB / 351.4 MB, free: 2.801 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000101/0.127, allocations: 7.984 kB / 351.4 MB, free: 2.793 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.663e-05/0.1271, allocations: 19.86 kB / 351.4 MB, free: 2.773 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.129e-05/0.1271, allocations: 15.92 kB / 351.4 MB, free: 2.758 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.845e-05/0.1271, allocations: 4 kB / 351.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.084e-05/0.1272, allocations: 0 / 351.4 MB, free: 2.754 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 1.934e-05/0.1272, allocations: 4 kB / 351.5 MB, free: 2.75 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 4.873e-05/0.1272, allocations: 19.88 kB / 351.5 MB, free: 2.73 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 8.87e-05/0.1273, allocations: 35.88 kB / 351.5 MB, free: 2.695 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.65e-06/0.1273, allocations: 4 kB / 351.5 MB, free: 2.691 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.072e-06/0.1273, allocations: 0 / 351.5 MB, free: 2.691 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.55e-06/0.1274, allocations: 0 / 351.5 MB, free: 2.691 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.000574/0.1279, allocations: 355.6 kB / 351.9 MB, free: 2.297 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.249e-05/0.128, allocations: 8.031 kB / 351.9 MB, free: 2.289 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.37e-05/0.128, allocations: 4.938 kB / 351.9 MB, free: 2.285 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001857/0.1282, allocations: 176.3 kB / 352 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.304e-05/0.1282, allocations: 8.375 kB / 352 MB, free: 2.066 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.539e-05/0.1283, allocations: 4.375 kB / 352.1 MB, free: 2.062 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004633/0.1287, allocations: 139.5 kB / 352.2 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.012e-05/0.1288, allocations: 0 / 352.2 MB, free: 1.914 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.049e-05/0.1288, allocations: 4 kB / 352.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.099e-06/0.1288, allocations: 0 / 352.2 MB, free: 1.91 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001616/0.1289, allocations: 35.97 kB / 352.2 MB, free: 1.875 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001519/0.1291, allocations: 161.6 kB / 352.4 MB, free: 1.668 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002659/0.1294, allocations: 82.52 kB / 352.5 MB, free: 1.578 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000118/0.1295, allocations: 40.78 kB / 352.5 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.205e-05/0.1295, allocations: 0 / 352.5 MB, free: 1.535 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.53e-05/0.1296, allocations: 34.5 kB / 352.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.72e-07/0.1296, allocations: 0 / 352.5 MB, free: 1.492 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003995/0.13, allocations: 105.7 kB / 352.6 MB, free: 1.383 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001214/0.1301, allocations: 59.41 kB / 352.7 MB, free: 1.312 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001065/0.1302, allocations: 105.8 kB / 352.8 MB, free: 1.199 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.949e-05/0.1303, allocations: 25.7 kB / 352.8 MB, free: 1.168 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.305e-05/0.1303, allocations: 80.14 kB / 352.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.635e-05/0.1303, allocations: 7.938 kB / 352.9 MB, free: 1.078 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.431e-05/0.1304, allocations: 13.72 kB / 352.9 MB, free: 1.059 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001792/0.1306, allocations: 318.8 kB / 353.2 MB, free: 0.7383 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.564e-05/0.1306, allocations: 11.94 kB / 353.3 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.567e-05/0.1306, allocations: 27.42 kB / 353.3 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.911e-05/0.1307, allocations: 39.38 kB / 353.3 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1307, allocations: 4 kB / 353.3 MB, free: 0.6328 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001723/0.1309, allocations: 53.62 kB / 353.4 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.122e-05/0.1309, allocations: 7.938 kB / 353.4 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.583e-06/0.1309, allocations: 0 / 353.4 MB, free: 0.5664 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.048e-05/0.131, allocations: 4 kB / 353.4 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.407e-05/0.131, allocations: 4 kB / 353.4 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.867e-05/0.1311, allocations: 7.984 kB / 353.4 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.537e-05/0.1311, allocations: 11.94 kB / 353.4 MB, free: 0.5391 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.579e-06/0.1311, allocations: 4.125 kB / 353.4 MB, free: 0.5352 MB / 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (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 prepare postOptimizeDAE: time 9.612e-05/0.1312, allocations: 109.8 kB / 353.5 MB, free: 428 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.1314, allocations: 81.5 kB / 353.6 MB, free: 340 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.034e-05/0.1315, allocations: 7.906 kB / 353.6 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.844e-06/0.1315, allocations: 0 / 353.6 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.103e-06/0.1315, allocations: 0 / 353.6 MB, free: 324 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.582e-06/0.1315, allocations: 4 kB / 353.6 MB, free: 320 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001739/0.1317, allocations: 157.7 kB / 353.8 MB, free: 112 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.072e-06/0.1317, allocations: 4 kB / 353.8 MB, free: 108 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.57e-05/0.1318, allocations: 11.98 kB / 353.8 MB, free: 96 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.047e-06/0.1318, allocations: 3.938 kB / 353.8 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.294e-06/0.1318, allocations: 0 / 353.8 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.306e-06/0.1318, allocations: 0 / 353.8 MB, free: 92 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.12e-07/0.1318, allocations: 3.938 kB / 353.8 MB, free: 88 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002782/0.1321, allocations: 105.1 kB / 353.9 MB, free: 15.96 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.114e-05/0.1322, allocations: 88.94 kB / 354 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.024e-05/0.1322, allocations: 0 / 354 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.831e-05/0.1323, allocations: 4 kB / 354 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.169e-06/0.1323, allocations: 0 / 354 MB, free: 15.86 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.1323, allocations: 7.938 kB / 354 MB, free: 15.85 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.339e-05/0.1324, allocations: 87.27 kB / 354.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1324, allocations: 0 / 354.1 MB, free: 15.76 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001892/0.1326, allocations: 4 kB / 354.1 MB, free: 15.76 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: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * 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.0001685/0.1328, allocations: 103.2 kB / 354.2 MB, free: 15.65 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001783/0.133, allocations: 39.91 kB / 354.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.133, allocations: 3.938 kB / 354.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.71e-07/0.133, allocations: 0 / 354.2 MB, free: 15.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000388/0.1334, allocations: 33.88 kB / 354.3 MB, free: 15.57 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003724/0.1337, allocations: 131.5 kB / 354.4 MB, free: 15.41 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002768/0.134, allocations: 0.6809 MB / 355.1 MB, free: 14.71 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.8e-05/0.1341, allocations: 4 kB / 355.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.34e-05/0.1341, allocations: 7.438 kB / 355.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of SimCode: time 2.1e-07/0.1341, allocations: 0 / 355.1 MB, free: 14.7 MB / 302.1 MB Notification: Performance of Templates: time 0.002852/0.1369, allocations: 400.8 kB / 355.5 MB, free: 14.31 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches