Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.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.Test20,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test20",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test20,fileNamePrefix="ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test20",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.0008394/0.0008394, allocations: 174 kB / 16.72 MB, free: 4.961 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.239/1.239, allocations: 205.4 MB / 222.9 MB, free: 9.023 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.0006933/0.0006933, allocations: 85.53 kB / 271.2 MB, free: 8.234 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.2859/0.2859, allocations: 43.56 MB / 363.1 MB, free: 51.89 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003364/0.0003364, allocations: 19.98 kB / 432.1 MB, free: 5.477 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1028, allocations: 58.86 MB / 490.9 MB, free: 10.53 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test20): time 0.001847/0.1047, allocations: 1.394 MB / 492.3 MB, free: 9.121 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001035/0.1058, allocations: 0.7422 MB / 493.1 MB, free: 8.371 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.001e-05/0.1058, allocations: 3.938 kB / 493.1 MB, free: 8.367 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002417/0.1061, allocations: 35.89 kB / 493.1 MB, free: 8.332 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000146/0.1063, allocations: 43.83 kB / 493.2 MB, free: 8.289 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002049/0.1065, allocations: 63.86 kB / 493.2 MB, free: 8.227 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001384/0.1066, allocations: 87.69 kB / 493.3 MB, free: 8.141 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.031e-05/0.1067, allocations: 16.22 kB / 493.3 MB, free: 8.125 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.53e-05/0.1068, allocations: 43.78 kB / 493.4 MB, free: 8.082 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.756e-05/0.1068, allocations: 23.84 kB / 493.4 MB, free: 8.059 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.534e-05/0.1069, allocations: 4 kB / 493.4 MB, free: 8.055 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.057e-05/0.107, allocations: 43.92 kB / 493.4 MB, free: 8.012 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.852e-05/0.107, allocations: 15.92 kB / 493.4 MB, free: 7.996 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.228e-05/0.1071, allocations: 53.52 kB / 493.5 MB, free: 7.938 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001264/0.1072, allocations: 80.09 kB / 493.6 MB, free: 7.859 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1072, allocations: 4 kB / 493.6 MB, free: 7.855 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.353e-06/0.1072, allocations: 0 / 493.6 MB, free: 7.855 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.646e-06/0.1072, allocations: 0 / 493.6 MB, free: 7.855 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.000452/0.1077, allocations: 402.7 kB / 494 MB, free: 7.418 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.702e-05/0.1077, allocations: 12.03 kB / 494 MB, free: 7.406 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.956e-05/0.1078, allocations: 38.69 kB / 494 MB, free: 7.359 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.946e-05/0.1078, allocations: 8.844 kB / 494 MB, free: 7.352 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002037/0.108, allocations: 212 kB / 494.2 MB, free: 7.105 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.21e-05/0.1081, allocations: 8.312 kB / 494.2 MB, free: 7.098 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.717e-05/0.1081, allocations: 7.938 kB / 494.3 MB, free: 7.09 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001308/0.1082, allocations: 53.67 kB / 494.3 MB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.007e-05/0.1082, allocations: 0 / 494.3 MB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.977e-06/0.1082, allocations: 0 / 494.3 MB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.158e-06/0.1083, allocations: 0 / 494.3 MB, free: 7.031 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.692e-05/0.1083, allocations: 31.86 kB / 494.3 MB, free: 7 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003233/0.1087, allocations: 284.8 kB / 494.6 MB, free: 6.672 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001497/0.1088, allocations: 58.67 kB / 494.7 MB, free: 6.605 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.736e-05/0.1089, allocations: 16.86 kB / 494.7 MB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.616e-05/0.1089, allocations: 0 / 494.7 MB, free: 6.586 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001682/0.1091, allocations: 79.31 kB / 494.8 MB, free: 6.496 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.212e-06/0.1091, allocations: 4 kB / 494.8 MB, free: 6.492 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004731/0.1096, allocations: 165.2 kB / 494.9 MB, free: 6.324 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.799e-05/0.1096, allocations: 55.41 kB / 495 MB, free: 6.258 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001586/0.1098, allocations: 186.2 kB / 495.2 MB, free: 6.066 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.617e-05/0.1098, allocations: 25.7 kB / 495.2 MB, free: 6.035 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.901e-05/0.1099, allocations: 100.1 kB / 495.3 MB, free: 5.934 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.543e-05/0.1099, allocations: 31.62 kB / 495.3 MB, free: 5.902 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.469e-06/0.1099, allocations: 4 kB / 495.3 MB, free: 5.898 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001085/0.11, allocations: 322.8 kB / 495.6 MB, free: 5.574 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.132e-05/0.1101, allocations: 19.98 kB / 495.7 MB, free: 5.555 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.837e-05/0.1101, allocations: 33.7 kB / 495.7 MB, free: 5.516 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001039/0.1103, allocations: 65.64 kB / 495.8 MB, free: 5.445 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.1103, allocations: 0 / 495.8 MB, free: 5.445 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001644/0.1104, allocations: 89.59 kB / 495.8 MB, free: 5.352 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.057e-05/0.1105, allocations: 8.031 kB / 495.9 MB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.198e-06/0.1105, allocations: 0 / 495.9 MB, free: 5.344 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.028e-05/0.1105, allocations: 4 kB / 495.9 MB, free: 5.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.124e-05/0.1106, allocations: 23.92 kB / 495.9 MB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.709e-06/0.1106, allocations: 160 / 495.9 MB, free: 5.316 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.449e-05/0.1106, allocations: 7.938 kB / 495.9 MB, free: 5.309 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.797e-06/0.1106, allocations: 7.984 kB / 495.9 MB, free: 5.301 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 8.708e-05/0.1107, allocations: 129.6 kB / 496 MB, free: 5.168 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.898e-05/0.1108, allocations: 15.8 kB / 496 MB, free: 5.152 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.555e-05/0.1108, allocations: 20.7 kB / 496.1 MB, free: 5.137 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.1108, allocations: 7.938 kB / 496.1 MB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.116e-06/0.1108, allocations: 0 / 496.1 MB, free: 5.129 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.709e-06/0.1108, allocations: 3.938 kB / 496.1 MB, free: 5.125 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004082/0.1112, allocations: 383.3 kB / 496.4 MB, free: 4.691 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.895e-06/0.1113, allocations: 4 kB / 496.4 MB, free: 4.688 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.001e-05/0.1113, allocations: 8 kB / 496.5 MB, free: 4.68 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.673e-06/0.1113, allocations: 12.16 kB / 496.5 MB, free: 4.668 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.366e-06/0.1113, allocations: 3.938 kB / 496.5 MB, free: 4.664 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.585e-06/0.1113, allocations: 7.922 kB / 496.5 MB, free: 4.656 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.826e-06/0.1113, allocations: 4 kB / 496.5 MB, free: 4.652 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001926/0.1115, allocations: 192.3 kB / 496.7 MB, free: 4.445 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.918e-05/0.1116, allocations: 88.92 kB / 496.8 MB, free: 4.34 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.159e-05/0.1116, allocations: 7.938 kB / 496.8 MB, free: 4.332 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.669e-05/0.1117, allocations: 8.359 kB / 496.8 MB, free: 4.324 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.958e-05/0.1117, allocations: 8 kB / 496.8 MB, free: 4.316 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.422e-05/0.1117, allocations: 4 kB / 496.8 MB, free: 4.312 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000105/0.1119, allocations: 144 kB / 496.9 MB, free: 4.172 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1119, allocations: 0 / 496.9 MB, free: 4.172 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002306/0.1121, allocations: 20 kB / 496.9 MB, free: 4.152 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.001241/0.1133, allocations: 1.109 MB / 498.1 MB, free: 3.059 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001603/0.1135, allocations: 63.92 kB / 498.1 MB, free: 2.996 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.1135, allocations: 0 / 498.1 MB, free: 2.996 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.344e-05/0.1136, allocations: 31.92 kB / 498.2 MB, free: 2.965 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003116/0.1139, allocations: 24.28 kB / 498.2 MB, free: 2.941 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001058/0.115, allocations: 0.7325 MB / 498.9 MB, free: 2.148 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002735/0.1153, allocations: 0.7043 MB / 499.6 MB, free: 1.418 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.724e-05/0.1153, allocations: 35.42 kB / 499.6 MB, free: 1.383 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.1153, allocations: 0 / 499.6 MB, free: 1.383 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.787/2.902, allocations: 2.201 MB / 0.4901 GB, free: 42.3 MB / 378.7 MB (rm -f ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe ; mkfifo ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe ; head -c 1048576 < ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe >> ../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat --tempDir=temp_ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test20_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_3_2_3_cpp_ModelicaTest_Tables_CombiTimeTable_Test20.fmu > ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe 2>&1) diffSimulationResults("ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/ModelicaTest/Tables/CombiTimeTable/Test20/Test20.csv","../files/ModelicaTest_3.2.3_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches