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.00168/0.00168, allocations: 113.5 kB / 17.7 MB, free: 5.309 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.001897/0.001897, allocations: 191 kB / 18.63 MB, free: 4.375 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.459/1.459, allocations: 222.9 MB / 242.3 MB, free: 15.28 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00126/0.00126, allocations: 47.67 kB / 302.1 MB, free: 5.23 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1127/0.114, allocations: 49.45 MB / 351.5 MB, free: 3.754 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.002808/0.1169, allocations: 1.464 MB / 353 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007245/0.1176, allocations: 420.5 kB / 353.4 MB, free: 1.859 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.95e-05/0.1177, allocations: 7.938 kB / 353.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 2.833e-05/0.1177, allocations: 0 / 353.4 MB, free: 1.852 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 5.763e-05/0.1178, allocations: 3.938 kB / 353.4 MB, free: 1.848 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002306/0.118, allocations: 26.92 kB / 353.4 MB, free: 1.824 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 9.828e-05/0.1181, allocations: 43.83 kB / 353.5 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001105/0.1182, allocations: 8 kB / 353.5 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.462e-05/0.1183, allocations: 19.86 kB / 353.5 MB, free: 1.754 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.362e-05/0.1184, allocations: 15.92 kB / 353.5 MB, free: 1.738 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.19e-05/0.1184, allocations: 8 kB / 353.5 MB, free: 1.73 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.134e-05/0.1184, allocations: 4 kB / 353.5 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.154e-05/0.1184, allocations: 4 kB / 353.5 MB, free: 1.723 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.816e-05/0.1185, allocations: 15.88 kB / 353.5 MB, free: 1.707 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 9.541e-05/0.1186, allocations: 39.88 kB / 353.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.889e-06/0.1186, allocations: 0 / 353.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1186, allocations: 0 / 353.6 MB, free: 1.668 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.16e-06/0.1186, allocations: 0 / 353.6 MB, free: 1.668 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.0005028/0.1191, allocations: 363.3 kB / 353.9 MB, free: 1.266 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.994e-05/0.1192, allocations: 8.031 kB / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.932e-05/0.1192, allocations: 0.9375 kB / 353.9 MB, free: 1.258 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002258/0.1194, allocations: 176.3 kB / 354.1 MB, free: 1.047 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.332e-05/0.1194, allocations: 8.312 kB / 354.1 MB, free: 1.039 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.551e-05/0.1195, allocations: 4.375 kB / 354.1 MB, free: 1.035 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004213/0.1199, allocations: 135.6 kB / 354.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.123e-06/0.1199, allocations: 0 / 354.3 MB, free: 0.8906 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.003e-05/0.1199, allocations: 4 kB / 354.3 MB, free: 0.8867 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.737e-06/0.1199, allocations: 4 kB / 354.3 MB, free: 0.8828 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001583/0.1201, allocations: 35.95 kB / 354.3 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000175/0.1203, allocations: 157.6 kB / 354.5 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002887/0.1206, allocations: 86.45 kB / 354.5 MB, free: 0.5508 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.923e-05/0.1207, allocations: 32.91 kB / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.057e-05/0.1207, allocations: 0 / 354.6 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.149e-05/0.1208, allocations: 42.5 kB / 354.6 MB, free: 476 kB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 8.71e-07/0.1208, allocations: 0 / 354.6 MB, free: 476 kB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003143/0.1211, allocations: 97.67 kB / 354.7 MB, free: 372 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.38e-05/0.1211, allocations: 67.31 kB / 354.8 MB, free: 292 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.671e-05/0.1212, allocations: 109.8 kB / 354.9 MB, free: 172 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.169e-05/0.1212, allocations: 25.7 kB / 354.9 MB, free: 140 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.556e-05/0.1213, allocations: 92.08 kB / 355 MB, free: 44 kB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 9.428e-06/0.1213, allocations: 4 kB / 355 MB, free: 40 kB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.624e-05/0.1213, allocations: 13.72 kB / 355 MB, free: 20 kB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001224/0.1215, allocations: 318.8 kB / 355.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.353e-05/0.1215, allocations: 4 kB / 355.3 MB, free: 15.7 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.907e-05/0.1215, allocations: 27.44 kB / 355.4 MB, free: 15.66 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.08e-05/0.1216, allocations: 31.38 kB / 355.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.184e-06/0.1216, allocations: 0 / 355.4 MB, free: 15.61 MB / 302.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 7.925e-05/0.1216, allocations: 57.62 kB / 355.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.649e-05/0.1217, allocations: 11.94 kB / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.359e-06/0.1217, allocations: 0 / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.351e-05/0.1217, allocations: 4.125 kB / 355.5 MB, free: 15.54 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.997e-05/0.1218, allocations: 15.92 kB / 355.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.64e-06/0.1218, allocations: 0 / 355.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.051e-05/0.1218, allocations: 4 kB / 355.5 MB, free: 15.52 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.967e-06/0.1218, allocations: 0 / 355.5 MB, free: 15.52 MB / 302.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 7.107e-05/0.1219, allocations: 117.8 kB / 355.6 MB, free: 15.39 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.1221, allocations: 77.5 kB / 355.7 MB, free: 15.31 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.217e-05/0.1221, allocations: 7.906 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.733e-06/0.1221, allocations: 4 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.44e-06/0.1221, allocations: 4 kB / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.985e-06/0.1221, allocations: 0 / 355.7 MB, free: 15.29 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.774e-05/0.1222, allocations: 157.7 kB / 355.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.1222, allocations: 3.938 kB / 355.8 MB, free: 15.08 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.283e-05/0.1223, allocations: 15.98 kB / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.278e-05/0.1223, allocations: 3.938 kB / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.733e-06/0.1224, allocations: 0 / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.202e-06/0.1224, allocations: 0 / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.51e-07/0.1224, allocations: 0 / 355.9 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002042/0.1226, allocations: 105.1 kB / 356 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.233e-05/0.1226, allocations: 88.95 kB / 356.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.367e-05/0.1226, allocations: 0 / 356.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.875e-05/0.1227, allocations: 4 kB / 356.1 MB, free: 14.83 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.727e-06/0.1227, allocations: 3.938 kB / 356.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.322e-06/0.1227, allocations: 3.984 kB / 356.1 MB, free: 14.82 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.122e-05/0.1228, allocations: 91.28 kB / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1228, allocations: 0 / 356.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002146/0.123, allocations: 4 kB / 356.2 MB, free: 14.73 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.0001185/0.1231, allocations: 103.7 kB / 356.3 MB, free: 14.62 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001558/0.1233, allocations: 31.97 kB / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.264e-06/0.1233, allocations: 0 / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 6.21e-07/0.1233, allocations: 256 / 356.3 MB, free: 14.59 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003058/0.1236, allocations: 43.88 kB / 356.3 MB, free: 14.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002865/0.1239, allocations: 113.5 kB / 356.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002195/0.1241, allocations: 0.6768 MB / 357.1 MB, free: 13.7 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 1.474e-05/0.1242, allocations: 7.984 kB / 357.1 MB, free: 13.69 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.406e-05/0.1242, allocations: 7.438 kB / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1242, allocations: 0 / 357.1 MB, free: 13.68 MB / 302.1 MB Notification: Performance of Templates: time 0.002483/0.1267, allocations: 417.4 kB / 357.5 MB, free: 13.28 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 -s gbode -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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","/var/lib/jenkins1/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