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.001346/0.001346, allocations: 102.6 kB / 16.51 MB, free: 6.641 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.001611/0.001611, allocations: 195.1 kB / 17.42 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.436/1.436, allocations: 222.9 MB / 241.1 MB, free: 15.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001337/0.001337, allocations: 41.41 kB / 299.9 MB, free: 6.332 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1066/0.108, allocations: 49.46 MB / 349.4 MB, free: 4.863 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample2): time 0.002886/0.1109, allocations: 1.593 MB / 351 MB, free: 3.254 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.0003284/0.1112, allocations: 143.5 kB / 351.1 MB, free: 3.113 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.535e-05/0.1113, allocations: 3.938 kB / 351.1 MB, free: 3.109 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 4.229e-05/0.1114, allocations: 7.984 kB / 351.1 MB, free: 3.102 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001218/0.1115, allocations: 3.938 kB / 351.2 MB, free: 3.098 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002163/0.1117, allocations: 38.09 kB / 351.2 MB, free: 3.062 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 7.316e-05/0.1118, allocations: 31.86 kB / 351.2 MB, free: 3.031 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.258e-05/0.1119, allocations: 15.98 kB / 351.2 MB, free: 3.016 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 2.862e-05/0.1119, allocations: 15.92 kB / 351.2 MB, free: 3 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.005e-05/0.112, allocations: 15.88 kB / 351.3 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 1.677e-05/0.112, allocations: 0 / 351.3 MB, free: 2.984 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.133e-05/0.112, allocations: 4 kB / 351.3 MB, free: 2.98 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.657e-05/0.1121, allocations: 11.92 kB / 351.3 MB, free: 2.969 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 3.843e-05/0.1121, allocations: 27.81 kB / 351.3 MB, free: 2.941 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 7.943e-05/0.1122, allocations: 39.81 kB / 351.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.969e-06/0.1122, allocations: 3.984 kB / 351.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of FrontEnd: time 7.72e-07/0.1122, allocations: 0 / 351.4 MB, free: 2.898 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.767e-06/0.1122, allocations: 4 kB / 351.4 MB, free: 2.895 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.0003934/0.1126, allocations: 367.5 kB / 351.7 MB, free: 2.484 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.259e-05/0.1127, allocations: 8.031 kB / 351.7 MB, free: 2.477 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.283e-05/0.1127, allocations: 8.844 kB / 351.7 MB, free: 2.469 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001689/0.1129, allocations: 184.2 kB / 351.9 MB, free: 2.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.086e-05/0.1129, allocations: 8.375 kB / 351.9 MB, free: 2.242 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.799e-06/0.1129, allocations: 8.312 kB / 351.9 MB, free: 2.234 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002553/0.1132, allocations: 117.4 kB / 352 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.725e-06/0.1132, allocations: 192 / 352 MB, free: 2.102 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.1132, allocations: 7.938 kB / 352 MB, free: 2.094 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.3e-06/0.1132, allocations: 4 kB / 352.1 MB, free: 2.09 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.153e-05/0.1133, allocations: 15.98 kB / 352.1 MB, free: 2.074 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002974/0.1136, allocations: 261.8 kB / 352.3 MB, free: 1.766 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002025/0.1138, allocations: 138.2 kB / 352.5 MB, free: 1.594 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.527e-05/0.1139, allocations: 29.77 kB / 352.5 MB, free: 1.559 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.694e-05/0.1139, allocations: 3.938 kB / 352.5 MB, free: 1.555 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.114, allocations: 38.56 kB / 352.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of pre-optimization done (n=4): time 2.445e-06/0.114, allocations: 0 / 352.5 MB, free: 1.508 MB / 286.1 MB Notification: Performance of matching and sorting (n=4): time 0.0002429/0.1142, allocations: 89.72 kB / 352.6 MB, free: 1.414 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.1143, allocations: 77.11 kB / 352.7 MB, free: 1.32 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001059/0.1144, allocations: 133.3 kB / 352.8 MB, free: 1.18 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.15e-05/0.1144, allocations: 25.7 kB / 352.8 MB, free: 1.148 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 4.597e-05/0.1144, allocations: 92.12 kB / 352.9 MB, free: 1.055 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.541e-05/0.1145, allocations: 3.938 kB / 352.9 MB, free: 1.051 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.64e-05/0.1145, allocations: 25.61 kB / 353 MB, free: 1.02 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001056/0.1146, allocations: 314.8 kB / 353.3 MB, free: 0.7031 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.887e-05/0.1147, allocations: 16.02 kB / 353.3 MB, free: 0.6875 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.337e-05/0.1147, allocations: 31.42 kB / 353.3 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.496e-05/0.1148, allocations: 47.36 kB / 353.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.054e-06/0.1148, allocations: 0 / 353.4 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001219/0.1149, allocations: 73.48 kB / 353.4 MB, free: 0.5078 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.793e-05/0.115, allocations: 8 kB / 353.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.24e-06/0.115, allocations: 0 / 353.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.181e-05/0.115, allocations: 0 / 353.4 MB, free: 0.5 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.126e-05/0.1151, allocations: 8 kB / 353.5 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.124e-06/0.1151, allocations: 4.125 kB / 353.5 MB, free: 500 kB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.135e-05/0.1151, allocations: 7.984 kB / 353.5 MB, free: 492 kB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-06/0.1151, allocations: 4 kB / 353.5 MB, free: 488 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.945e-05/0.1152, allocations: 117.8 kB / 353.6 MB, free: 360 kB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.925e-05/0.1153, allocations: 53.53 kB / 353.6 MB, free: 300 kB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.419e-05/0.1153, allocations: 12.25 kB / 353.6 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.694e-06/0.1153, allocations: 0 / 353.6 MB, free: 280 kB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.398e-06/0.1153, allocations: 3.938 kB / 353.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.364e-06/0.1153, allocations: 0 / 353.7 MB, free: 276 kB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000154/0.1155, allocations: 169.6 kB / 353.8 MB, free: 56 kB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.1155, allocations: 4 kB / 353.8 MB, free: 52 kB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.187e-05/0.1156, allocations: 7.984 kB / 353.8 MB, free: 44 kB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1156, allocations: 4 kB / 353.8 MB, free: 40 kB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.714e-05/0.1156, allocations: 4 kB / 353.8 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.473e-06/0.1156, allocations: 0 / 353.8 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.72e-07/0.1156, allocations: 0 / 353.8 MB, free: 36 kB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001912/0.1158, allocations: 176.2 kB / 354 MB, free: 15.84 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.798e-05/0.1159, allocations: 93 kB / 354.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.612e-05/0.1159, allocations: 4 kB / 354.1 MB, free: 15.73 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.42e-05/0.116, allocations: 7.938 kB / 354.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.558e-05/0.116, allocations: 0 / 354.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.866e-06/0.116, allocations: 0 / 354.1 MB, free: 15.72 MB / 302.1 MB Notification: Performance of sorting global known variables: time 6.377e-05/0.1161, allocations: 107.2 kB / 354.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1161, allocations: 0 / 354.2 MB, free: 15.62 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002172/0.1163, allocations: 4 kB / 354.2 MB, free: 15.61 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 (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.0001213/0.1165, allocations: 103.2 kB / 354.3 MB, free: 15.5 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001281/0.1166, allocations: 31.92 kB / 354.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.734e-06/0.1166, allocations: 0 / 354.4 MB, free: 15.47 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 3.204e-05/0.1166, allocations: 7.984 kB / 354.4 MB, free: 15.46 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003598/0.117, allocations: 34.36 kB / 354.4 MB, free: 15.43 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00032/0.1173, allocations: 168.4 kB / 354.6 MB, free: 15.24 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002724/0.1176, allocations: 0.6887 MB / 355.2 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.387e-05/0.1176, allocations: 3.984 kB / 355.3 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.232e-05/0.1177, allocations: 11.44 kB / 355.3 MB, free: 14.51 MB / 302.1 MB Notification: Performance of SimCode: time 2.71e-07/0.1177, allocations: 4 kB / 355.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of Templates: time 0.002537/0.1202, allocations: 451 kB / 355.7 MB, free: 14.07 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches