Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.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.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock.y|sample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009392/0.0009393, allocations: 92.53 kB / 16.3 MB, free: 5.523 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.001008/0.001008, allocations: 184.9 kB / 17.2 MB, free: 5.457 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.397/1.397, allocations: 223.2 MB / 241.1 MB, free: 356 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002933/0.0002933, allocations: 8 kB / 300.7 MB, free: 6.453 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1163/0.1166, allocations: 50.41 MB / 351.1 MB, free: 4.027 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.001934/0.1186, allocations: 1.244 MB / 352.4 MB, free: 2.77 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003707/0.119, allocations: 140.3 kB / 352.5 MB, free: 2.633 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.359e-05/0.1191, allocations: 4 kB / 352.5 MB, free: 2.629 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.483e-05/0.1192, allocations: 3.938 kB / 352.5 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001248/0.1193, allocations: 0 / 352.5 MB, free: 2.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002545/0.1196, allocations: 39.84 kB / 352.6 MB, free: 2.586 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 8.296e-05/0.1197, allocations: 19.97 kB / 352.6 MB, free: 2.566 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.803e-05/0.1198, allocations: 15.98 kB / 352.6 MB, free: 2.551 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 3.536e-05/0.1198, allocations: 11.92 kB / 352.6 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.044e-05/0.1199, allocations: 15.92 kB / 352.6 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.152e-05/0.1199, allocations: 0 / 352.6 MB, free: 2.523 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.416e-05/0.1199, allocations: 4 kB / 352.6 MB, free: 2.52 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.57e-05/0.1199, allocations: 7.938 kB / 352.6 MB, free: 2.512 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.534e-05/0.12, allocations: 33.64 kB / 352.7 MB, free: 2.473 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.265e-05/0.1201, allocations: 27.94 kB / 352.7 MB, free: 2.445 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.827e-06/0.1201, allocations: 8 kB / 352.7 MB, free: 2.438 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.1201, allocations: 4 kB / 352.7 MB, free: 2.434 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.567e-06/0.1201, allocations: 3.938 kB / 352.7 MB, free: 2.43 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: 9 * Number of variables: 9 Notification: Performance of Generate backend data structure: time 0.0004705/0.1206, allocations: 356.2 kB / 353.1 MB, free: 2.035 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.855e-05/0.1206, allocations: 8.031 kB / 353.1 MB, free: 2.027 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.562e-05/0.1207, allocations: 11.86 kB / 353.1 MB, free: 2.016 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002289/0.1209, allocations: 186.9 kB / 353.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.419e-05/0.1209, allocations: 4 kB / 353.3 MB, free: 1.789 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.486e-05/0.1209, allocations: 4 kB / 353.3 MB, free: 1.785 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000326/0.1213, allocations: 117 kB / 353.4 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.142e-05/0.1213, allocations: 0 / 353.4 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.216e-05/0.1213, allocations: 0 / 353.4 MB, free: 1.652 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.017e-06/0.1213, allocations: 3.953 kB / 353.4 MB, free: 1.648 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.319e-05/0.1214, allocations: 27.98 kB / 353.4 MB, free: 1.621 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003881/0.1218, allocations: 265.7 kB / 353.7 MB, free: 1.309 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002335/0.1221, allocations: 134.3 kB / 353.8 MB, free: 1.141 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.705e-05/0.1221, allocations: 4.062 kB / 353.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.917e-05/0.1221, allocations: 42.58 kB / 353.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 1.193e-06/0.1222, allocations: 0 / 353.9 MB, free: 1.086 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002931/0.1225, allocations: 85.66 kB / 353.9 MB, free: 0.9961 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.148e-05/0.1225, allocations: 81.11 kB / 354 MB, free: 0.8984 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001477/0.1227, allocations: 130.1 kB / 354.2 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.1227, allocations: 25.7 kB / 354.2 MB, free: 0.7266 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.331e-05/0.1228, allocations: 88.05 kB / 354.3 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.824e-05/0.1228, allocations: 7.984 kB / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.617e-06/0.1228, allocations: 0 / 354.3 MB, free: 0.6289 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001575/0.123, allocations: 310.8 kB / 354.6 MB, free: 324 kB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.523e-05/0.123, allocations: 20.02 kB / 354.6 MB, free: 304 kB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.948e-05/0.1231, allocations: 31.61 kB / 354.6 MB, free: 260 kB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.449e-05/0.1232, allocations: 19.98 kB / 354.6 MB, free: 240 kB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.806e-06/0.1232, allocations: 0 / 354.6 MB, free: 240 kB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001322/0.1233, allocations: 69.56 kB / 354.7 MB, free: 164 kB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.83e-05/0.1234, allocations: 4 kB / 354.7 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.739e-06/0.1234, allocations: 0 / 354.7 MB, free: 160 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.089e-05/0.1234, allocations: 11.89 kB / 354.7 MB, free: 148 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.471e-05/0.1235, allocations: 11.98 kB / 354.7 MB, free: 136 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.151e-06/0.1235, allocations: 4.125 kB / 354.7 MB, free: 132 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.841e-05/0.1235, allocations: 11.84 kB / 354.8 MB, free: 120 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.909e-06/0.1235, allocations: 11.94 kB / 354.8 MB, free: 108 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: 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001284/0.1237, allocations: 113.8 kB / 354.9 MB, free: 15.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.368e-05/0.1238, allocations: 49.64 kB / 354.9 MB, free: 15.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.175e-05/0.1238, allocations: 8.234 kB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.46e-06/0.1238, allocations: 7.953 kB / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.573e-06/0.1238, allocations: 0 / 354.9 MB, free: 15.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.1238, allocations: 4 kB / 354.9 MB, free: 15.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001959/0.124, allocations: 169.6 kB / 355.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.052e-06/0.1241, allocations: 0 / 355.1 MB, free: 15.69 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.68e-05/0.1241, allocations: 8 kB / 355.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.104e-06/0.1241, allocations: 4 kB / 355.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.987e-06/0.1241, allocations: 0 / 355.1 MB, free: 15.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.125e-06/0.1241, allocations: 4 kB / 355.1 MB, free: 15.67 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.95e-06/0.1241, allocations: 7.938 kB / 355.1 MB, free: 15.66 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002206/0.1244, allocations: 182.1 kB / 355.3 MB, free: 15.46 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.26e-05/0.1245, allocations: 89 kB / 355.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.798e-05/0.1245, allocations: 0 / 355.4 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.343e-05/0.1246, allocations: 15.94 kB / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.033e-05/0.1246, allocations: 0 / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.732e-06/0.1246, allocations: 4 kB / 355.4 MB, free: 15.34 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.546e-05/0.1247, allocations: 106.6 kB / 355.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1247, allocations: 0 / 355.5 MB, free: 15.23 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002219/0.1249, allocations: 4 kB / 355.5 MB, free: 15.23 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001392/0.1251, allocations: 99.23 kB / 355.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001697/0.1253, allocations: 36.11 kB / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.114e-06/0.1253, allocations: 4.062 kB / 355.7 MB, free: 15.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.419e-05/0.1253, allocations: 4 kB / 355.7 MB, free: 15.08 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003571/0.1257, allocations: 24.02 kB / 355.7 MB, free: 15.06 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003738/0.1261, allocations: 177.6 kB / 355.9 MB, free: 14.85 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003431/0.1264, allocations: 0.6926 MB / 356.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.966e-05/0.1264, allocations: 4 kB / 356.6 MB, free: 14.13 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.813e-05/0.1265, allocations: 7.438 kB / 356.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of SimCode: time 2.41e-07/0.1265, allocations: 0 / 356.6 MB, free: 14.12 MB / 302.1 MB Notification: Performance of Templates: time 0.003148/0.1296, allocations: 437.4 kB / 357 MB, free: 13.7 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample2/Sample2.csv","../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches