Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(ModelicaTest.Tables.CombiTimeTable.Test38,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38") translateModel(ModelicaTest.Tables.CombiTimeTable.Test38,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|t_new.y.1.",fileNamePrefix="ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008826/0.0008825, allocations: 175.2 kB / 16.72 MB, free: 5.082 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.27/1.27, allocations: 205.4 MB / 222.9 MB, free: 8.949 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008783/0.0008784, allocations: 82.42 kB / 271.2 MB, free: 8.246 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.3+maint.om/package.mo): time 0.3199/0.3199, allocations: 43.56 MB / 363.1 MB, free: 52.18 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004051/0.0004053, allocations: 16 kB / 432 MB, free: 5.844 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1165/0.1169, allocations: 58.86 MB / 490.8 MB, free: 10.9 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test38): time 0.002115/0.1191, allocations: 1.361 MB / 492.2 MB, free: 9.527 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001103/0.1202, allocations: 0.7355 MB / 492.9 MB, free: 8.785 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.554e-05/0.1203, allocations: 4 kB / 492.9 MB, free: 8.781 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002912/0.1206, allocations: 47.86 kB / 493 MB, free: 8.734 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002145/0.1208, allocations: 59.81 kB / 493 MB, free: 8.676 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.121, allocations: 67.84 kB / 493.1 MB, free: 8.609 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001497/0.1212, allocations: 87.69 kB / 493.2 MB, free: 8.523 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.99e-05/0.1212, allocations: 11.97 kB / 493.2 MB, free: 8.512 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.161e-05/0.1213, allocations: 43.78 kB / 493.2 MB, free: 8.469 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 8.879e-05/0.1214, allocations: 39.83 kB / 493.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.515e-05/0.1214, allocations: 0 / 493.3 MB, free: 8.43 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.909e-05/0.1215, allocations: 24 kB / 493.3 MB, free: 8.406 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.501e-05/0.1216, allocations: 19.91 kB / 493.3 MB, free: 8.387 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.979e-05/0.1216, allocations: 53.5 kB / 493.4 MB, free: 8.328 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001425/0.1218, allocations: 76.06 kB / 493.5 MB, free: 8.254 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.179e-06/0.1218, allocations: 0 / 493.5 MB, free: 8.254 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.425e-06/0.1218, allocations: 0 / 493.5 MB, free: 8.254 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.638e-06/0.1218, allocations: 0 / 493.5 MB, free: 8.254 MB / 378.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 4 * Number of variables: 4 Notification: Performance of Generate backend data structure: time 0.0005138/0.1223, allocations: 395.1 kB / 493.8 MB, free: 7.82 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.541e-05/0.1224, allocations: 8.031 kB / 493.8 MB, free: 7.812 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.575e-05/0.1224, allocations: 8.844 kB / 493.9 MB, free: 7.805 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002267/0.1226, allocations: 212.1 kB / 494.1 MB, free: 7.559 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.288e-05/0.1227, allocations: 384 / 494.1 MB, free: 7.559 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.457e-05/0.1227, allocations: 8.062 kB / 494.1 MB, free: 7.551 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001427/0.1229, allocations: 49.67 kB / 494.1 MB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.705e-06/0.1229, allocations: 0 / 494.1 MB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.057e-05/0.1229, allocations: 0 / 494.1 MB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.138e-06/0.1229, allocations: 0 / 494.1 MB, free: 7.496 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.727e-05/0.123, allocations: 19.98 kB / 494.1 MB, free: 7.477 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001978/0.1232, allocations: 181.6 kB / 494.3 MB, free: 7.25 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001432/0.1233, allocations: 50.56 kB / 494.4 MB, free: 7.191 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.601e-05/0.1234, allocations: 24.78 kB / 494.4 MB, free: 7.164 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.218e-05/0.1234, allocations: 3.938 kB / 494.4 MB, free: 7.16 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001883/0.1236, allocations: 71.39 kB / 494.5 MB, free: 7.078 MB / 378.7 MB Notification: Performance of pre-optimization done (n=5): time 1.332e-06/0.1236, allocations: 0 / 494.5 MB, free: 7.078 MB / 378.7 MB Notification: Performance of matching and sorting (n=5): time 0.0002519/0.1239, allocations: 89.58 kB / 494.5 MB, free: 6.984 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.277e-05/0.1239, allocations: 59.28 kB / 494.6 MB, free: 6.914 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001819/0.1241, allocations: 182.2 kB / 494.8 MB, free: 6.723 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.576e-05/0.1242, allocations: 29.7 kB / 494.8 MB, free: 6.688 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.21e-05/0.1242, allocations: 100.1 kB / 494.9 MB, free: 6.586 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.688e-05/0.1243, allocations: 15.81 kB / 494.9 MB, free: 6.57 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.477e-06/0.1243, allocations: 0 / 494.9 MB, free: 6.57 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.1244, allocations: 322.8 kB / 495.2 MB, free: 6.246 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.538e-05/0.1244, allocations: 15.98 kB / 495.3 MB, free: 6.23 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5e-05/0.1245, allocations: 25.72 kB / 495.3 MB, free: 6.199 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.84e-05/0.1246, allocations: 45.95 kB / 495.3 MB, free: 6.148 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.1246, allocations: 4 kB / 495.3 MB, free: 6.145 MB / 378.7 MB Notification: Performance of matching and sorting (n=7) (initialization): time 0.0001782/0.1248, allocations: 85.47 kB / 495.4 MB, free: 6.055 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.135e-05/0.1248, allocations: 11.98 kB / 495.4 MB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1248, allocations: 0 / 495.4 MB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.072e-05/0.1248, allocations: 0 / 495.4 MB, free: 6.043 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.309e-05/0.1249, allocations: 8 kB / 495.4 MB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.184e-06/0.1249, allocations: 0 / 495.4 MB, free: 6.035 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.719e-05/0.125, allocations: 11.84 kB / 495.4 MB, free: 6.023 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.294e-06/0.125, allocations: 4 kB / 495.4 MB, free: 6.02 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (7): * Single equations (assignments): 7 * 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.000104/0.1251, allocations: 133.6 kB / 495.6 MB, free: 5.883 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.507e-05/0.1251, allocations: 7.906 kB / 495.6 MB, free: 5.875 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.328e-05/0.1252, allocations: 16.3 kB / 495.6 MB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-06/0.1252, allocations: 0 / 495.6 MB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.276e-06/0.1252, allocations: 0 / 495.6 MB, free: 5.863 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.508e-06/0.1252, allocations: 4 kB / 495.6 MB, free: 5.859 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001332/0.1253, allocations: 185.6 kB / 495.8 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.042e-06/0.1253, allocations: 0 / 495.8 MB, free: 5.629 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.072e-05/0.1254, allocations: 7.984 kB / 495.8 MB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.593e-06/0.1254, allocations: 0 / 495.8 MB, free: 5.621 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.1254, allocations: 8 kB / 495.8 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.102e-06/0.1254, allocations: 0 / 495.8 MB, free: 5.613 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.298e-06/0.1254, allocations: 3.984 kB / 495.8 MB, free: 5.609 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001641/0.1256, allocations: 112.8 kB / 495.9 MB, free: 5.48 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.512e-05/0.1256, allocations: 96.84 kB / 496 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.922e-05/0.1257, allocations: 0 / 496 MB, free: 5.367 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 3.697e-05/0.1257, allocations: 4 kB / 496 MB, free: 5.363 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.954e-05/0.1258, allocations: 11.98 kB / 496 MB, free: 5.352 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.32e-05/0.1258, allocations: 4.125 kB / 496 MB, free: 5.348 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001164/0.1259, allocations: 140.1 kB / 496.2 MB, free: 5.211 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1259, allocations: 0 / 496.2 MB, free: 5.211 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0001975/0.1261, allocations: 19.98 kB / 496.2 MB, free: 5.191 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (5): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.0008022/0.1269, allocations: 402.9 kB / 496.6 MB, free: 4.836 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001482/0.1271, allocations: 39.92 kB / 496.6 MB, free: 4.797 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.503e-06/0.1271, allocations: 4.062 kB / 496.6 MB, free: 4.793 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.752e-05/0.1271, allocations: 23.98 kB / 496.6 MB, free: 4.77 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002464/0.1274, allocations: 31.8 kB / 496.7 MB, free: 4.738 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003817/0.1278, allocations: 234.9 kB / 496.9 MB, free: 4.473 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002623/0.1281, allocations: 0.6965 MB / 497.6 MB, free: 3.75 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.003e-05/0.1281, allocations: 19.44 kB / 497.6 MB, free: 3.73 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.1281, allocations: 3.938 kB / 497.6 MB, free: 3.727 MB / 378.7 MB Notification: Performance of Templates: time 0.002956/0.1311, allocations: 1.656 MB / 499.3 MB, free: 2.074 MB / 378.7 MB make -j1 -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.makefile (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.sim & ./ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38 --alarm=480 -emit_protected > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test38/Test38.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test38.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches