Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.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: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test2,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0008571/0.0008569, allocations: 174 kB / 16.72 MB, free: 5.078 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.165/1.165, allocations: 205.4 MB / 222.9 MB, free: 9.02 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.0007091/0.000709, allocations: 82.36 kB / 271.2 MB, free: 8.25 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.3274/0.3274, allocations: 43.56 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000365/0.0003651, allocations: 12 kB / 432.1 MB, free: 5.5 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1018/0.1022, allocations: 58.85 MB / 490.9 MB, free: 10.56 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test2): time 0.002106/0.1043, allocations: 1.402 MB / 492.3 MB, free: 9.145 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.0012/0.1055, allocations: 0.7344 MB / 493.1 MB, free: 8.402 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.039e-05/0.1056, allocations: 3.938 kB / 493.1 MB, free: 8.398 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002632/0.1059, allocations: 35.89 kB / 493.1 MB, free: 8.363 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001647/0.1061, allocations: 35.84 kB / 493.1 MB, free: 8.328 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002526/0.1063, allocations: 71.84 kB / 493.2 MB, free: 8.258 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001543/0.1065, allocations: 87.69 kB / 493.3 MB, free: 8.172 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.639e-05/0.1066, allocations: 16.22 kB / 493.3 MB, free: 8.156 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.187e-05/0.1067, allocations: 35.78 kB / 493.4 MB, free: 8.121 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.287e-05/0.1068, allocations: 27.86 kB / 493.4 MB, free: 8.094 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.643e-05/0.1068, allocations: 7.922 kB / 493.4 MB, free: 8.086 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001079/0.1069, allocations: 32 kB / 493.4 MB, free: 8.055 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.534e-05/0.107, allocations: 19.92 kB / 493.4 MB, free: 8.035 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.207e-05/0.107, allocations: 53.5 kB / 493.5 MB, free: 7.977 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001484/0.1072, allocations: 80.09 kB / 493.6 MB, free: 7.898 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.528e-06/0.1072, allocations: 4 kB / 493.6 MB, free: 7.895 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1072, allocations: 4 kB / 493.6 MB, free: 7.891 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.517e-06/0.1072, allocations: 0 / 493.6 MB, free: 7.891 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: 6 * Number of variables: 6 Notification: Performance of Generate backend data structure: time 0.0004906/0.1077, allocations: 379.2 kB / 493.9 MB, free: 7.473 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.987e-05/0.1078, allocations: 12.03 kB / 494 MB, free: 7.461 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.049e-05/0.1078, allocations: 34.75 kB / 494 MB, free: 7.418 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.001e-05/0.1079, allocations: 8.844 kB / 494 MB, free: 7.41 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002196/0.1081, allocations: 208.3 kB / 494.2 MB, free: 7.168 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.46e-05/0.1081, allocations: 4 kB / 494.2 MB, free: 7.164 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.388e-05/0.1082, allocations: 11.94 kB / 494.2 MB, free: 7.152 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001547/0.1083, allocations: 49.67 kB / 494.3 MB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.236e-05/0.1084, allocations: 0 / 494.3 MB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.337e-05/0.1084, allocations: 8 kB / 494.3 MB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.078e-06/0.1084, allocations: 0 / 494.3 MB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.496e-05/0.1085, allocations: 15.98 kB / 494.3 MB, free: 7.074 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003566/0.1088, allocations: 292.7 kB / 494.6 MB, free: 6.738 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000172/0.109, allocations: 62.61 kB / 494.6 MB, free: 6.668 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.518e-05/0.1091, allocations: 20.8 kB / 494.7 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.228e-05/0.1091, allocations: 0 / 494.7 MB, free: 6.645 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001784/0.1093, allocations: 67.39 kB / 494.7 MB, free: 6.566 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.483e-06/0.1093, allocations: 0 / 494.7 MB, free: 6.566 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005451/0.1099, allocations: 173.5 kB / 494.9 MB, free: 6.391 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.073e-05/0.1099, allocations: 59.34 kB / 495 MB, free: 6.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001522/0.1101, allocations: 154.4 kB / 495.1 MB, free: 6.156 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.426e-05/0.1101, allocations: 25.7 kB / 495.1 MB, free: 6.125 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.634e-05/0.1102, allocations: 100.1 kB / 495.2 MB, free: 6.023 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.77e-05/0.1102, allocations: 27.64 kB / 495.3 MB, free: 5.996 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.703e-06/0.1102, allocations: 4 kB / 495.3 MB, free: 5.992 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001067/0.1103, allocations: 318.8 kB / 495.6 MB, free: 5.672 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.337e-05/0.1104, allocations: 27.92 kB / 495.6 MB, free: 5.645 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.78e-05/0.1105, allocations: 33.7 kB / 495.6 MB, free: 5.605 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000125/0.1106, allocations: 65.75 kB / 495.7 MB, free: 5.535 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.667e-06/0.1106, allocations: 4 kB / 495.7 MB, free: 5.531 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000191/0.1108, allocations: 97.44 kB / 495.8 MB, free: 5.43 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.339e-05/0.1108, allocations: 4 kB / 495.8 MB, free: 5.426 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.38e-06/0.1109, allocations: 7.969 kB / 495.8 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.216e-05/0.1109, allocations: 0 / 495.8 MB, free: 5.418 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.043e-05/0.111, allocations: 23.98 kB / 495.8 MB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.628e-06/0.111, allocations: 0 / 495.8 MB, free: 5.395 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.922e-05/0.111, allocations: 4 kB / 495.8 MB, free: 5.391 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.053e-06/0.111, allocations: 0 / 495.8 MB, free: 5.391 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 (10): * Single equations (assignments): 10 * 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 9.227e-05/0.1111, allocations: 129.8 kB / 496 MB, free: 5.254 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.803e-05/0.1112, allocations: 11.91 kB / 496 MB, free: 5.242 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.461e-05/0.1112, allocations: 24.59 kB / 496 MB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.064e-06/0.1112, allocations: 0 / 496 MB, free: 5.223 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.206e-06/0.1113, allocations: 4 kB / 496 MB, free: 5.219 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.679e-06/0.1113, allocations: 3.984 kB / 496 MB, free: 5.215 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004359/0.1117, allocations: 383.3 kB / 496.4 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.653e-06/0.1117, allocations: 0 / 496.4 MB, free: 4.781 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.733e-05/0.1118, allocations: 11.98 kB / 496.4 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.903e-06/0.1118, allocations: 0 / 496.4 MB, free: 4.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.317e-06/0.1118, allocations: 4.031 kB / 496.4 MB, free: 4.766 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.1118, allocations: 4 kB / 496.4 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.61e-07/0.1118, allocations: 192 / 496.4 MB, free: 4.762 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002468/0.1121, allocations: 204.2 kB / 496.6 MB, free: 4.543 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.586e-05/0.1121, allocations: 96.84 kB / 496.7 MB, free: 4.43 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.397e-05/0.1122, allocations: 4 kB / 496.7 MB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.809e-05/0.1122, allocations: 0 / 496.7 MB, free: 4.426 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.433e-05/0.1123, allocations: 11.98 kB / 496.7 MB, free: 4.414 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.63e-05/0.1123, allocations: 4 kB / 496.7 MB, free: 4.41 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001077/0.1124, allocations: 124 kB / 496.8 MB, free: 4.289 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1124, allocations: 4 kB / 496.8 MB, free: 4.285 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002775/0.1127, allocations: 24 kB / 496.9 MB, free: 4.262 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 6 * 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.00148/0.1142, allocations: 1.094 MB / 497.9 MB, free: 3.191 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001857/0.1144, allocations: 59.97 kB / 498 MB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.933e-06/0.1144, allocations: 0 / 498 MB, free: 3.133 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 7.687e-05/0.1145, allocations: 31.92 kB / 498 MB, free: 3.102 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003565/0.1149, allocations: 31.91 kB / 498.1 MB, free: 3.07 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001129/0.116, allocations: 0.671 MB / 498.7 MB, free: 2.344 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003211/0.1163, allocations: 0.7004 MB / 499.4 MB, free: 1.617 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.197e-05/0.1164, allocations: 31.44 kB / 499.5 MB, free: 1.586 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.1164, allocations: 0 / 499.5 MB, free: 1.586 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.862/2.979, allocations: 2.106 MB / 0.4898 GB, free: 41.72 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test2.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test2/Test2.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches