Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo", uses=false) Using package ModelicaTest with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Running command: "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test40,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test40",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test40,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test40",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009816/0.0009816, allocations: 192.8 kB / 16.09 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.257/1.257, allocations: 226.5 MB / 243.4 MB, free: 8.227 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008152/0.0008152, allocations: 100.7 kB / 295.5 MB, free: 6.875 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3375/0.3375, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003325/0.0003326, allocations: 15.98 kB / 465.4 MB, free: 12.53 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3444/0.3447, allocations: 62.96 MB / 0.516 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test40): time 0.001711/0.3465, allocations: 1.424 MB / 0.5174 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001229/0.3477, allocations: 0.9483 MB / 0.5183 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.7e-05/0.3478, allocations: 2.906 kB / 0.5183 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002776/0.3481, allocations: 82.05 kB / 0.5184 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002167/0.3483, allocations: 95.97 kB / 0.5185 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002411/0.3486, allocations: 102.5 kB / 0.5186 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001476/0.3487, allocations: 95.48 kB / 0.5186 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.623e-05/0.3488, allocations: 17.97 kB / 0.5187 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.734e-05/0.3489, allocations: 44.7 kB / 0.5187 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.834e-05/0.349, allocations: 50.2 kB / 0.5188 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.689e-05/0.349, allocations: 2.75 kB / 0.5188 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.691e-05/0.3491, allocations: 28 kB / 0.5188 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.956e-05/0.3492, allocations: 28.77 kB / 0.5188 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.289e-05/0.3493, allocations: 70.06 kB / 0.5189 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001574/0.3494, allocations: 98.12 kB / 0.519 GB, free: 35.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.164e-06/0.3494, allocations: 0 / 0.519 GB, free: 35.1 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.3494, allocations: 3.938 kB / 0.519 GB, free: 35.1 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.3495, allocations: 0 / 0.519 GB, free: 35.1 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.0005333/0.35, allocations: 406.1 kB / 0.5194 GB, free: 34.69 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.053e-05/0.3501, allocations: 11.31 kB / 0.5194 GB, free: 34.69 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.359e-05/0.3501, allocations: 30.75 kB / 0.5194 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.308e-05/0.3501, allocations: 10.22 kB / 0.5194 GB, free: 34.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000226/0.3504, allocations: 223.2 kB / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.708e-05/0.3504, allocations: 3.312 kB / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.451e-05/0.3505, allocations: 3.938 kB / 0.5196 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001506/0.3506, allocations: 59.2 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.314e-05/0.3506, allocations: 3 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.28e-05/0.3507, allocations: 0 / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.288e-06/0.3507, allocations: 3.938 kB / 0.5197 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 7.507e-05/0.3507, allocations: 18.83 kB / 0.5197 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003644/0.3511, allocations: 297.5 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001576/0.3513, allocations: 53.41 kB / 0.52 GB, free: 34.04 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.174e-05/0.3514, allocations: 25.52 kB / 0.5201 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.066e-05/0.3514, allocations: 2.844 kB / 0.5201 GB, free: 34.02 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001895/0.3516, allocations: 73.27 kB / 0.5201 GB, free: 33.96 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.292e-06/0.3516, allocations: 0 / 0.5201 GB, free: 33.96 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0005535/0.3521, allocations: 173 kB / 0.5203 GB, free: 33.87 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.058e-05/0.3522, allocations: 51.41 kB / 0.5204 GB, free: 33.81 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002043/0.3524, allocations: 228.2 kB / 0.5206 GB, free: 33.66 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.329e-05/0.3524, allocations: 28.39 kB / 0.5206 GB, free: 33.63 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.266e-05/0.3525, allocations: 105.1 kB / 0.5207 GB, free: 33.53 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.586e-05/0.3525, allocations: 21.94 kB / 0.5207 GB, free: 33.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.63e-06/0.3525, allocations: 8 kB / 0.5207 GB, free: 33.51 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.622e-05/0.3526, allocations: 323.8 kB / 0.521 GB, free: 33.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.343e-05/0.3527, allocations: 19.75 kB / 0.5211 GB, free: 33.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.881e-05/0.3527, allocations: 35.89 kB / 0.5211 GB, free: 33.16 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001089/0.3529, allocations: 57.08 kB / 0.5211 GB, free: 33.12 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.31e-07/0.3529, allocations: 0 / 0.5211 GB, free: 33.12 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001672/0.353, allocations: 113.4 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.827e-05/0.3531, allocations: 7.75 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.284e-06/0.3531, allocations: 2.969 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.562e-05/0.3531, allocations: 0 / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.668e-05/0.3532, allocations: 17.81 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.22e-06/0.3532, allocations: 0 / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.735e-05/0.3533, allocations: 10.53 kB / 0.5213 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.679e-06/0.3533, allocations: 6.781 kB / 0.5213 GB, free: 33.04 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 0.0001065/0.3534, allocations: 129.3 kB / 0.5214 GB, free: 32.92 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.322e-05/0.3534, allocations: 15.66 kB / 0.5214 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.61e-05/0.3535, allocations: 18.64 kB / 0.5215 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.036e-06/0.3535, allocations: 0 / 0.5215 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.654e-06/0.3535, allocations: 0 / 0.5215 GB, free: 32.91 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.899e-06/0.3535, allocations: 11.81 kB / 0.5215 GB, free: 32.89 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004048/0.3539, allocations: 396.3 kB / 0.5218 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.555e-06/0.3539, allocations: 3.219 kB / 0.5218 GB, free: 32.55 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.999e-05/0.354, allocations: 16 kB / 0.5219 GB, free: 32.54 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.026e-06/0.354, allocations: 7.922 kB / 0.5219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.668e-06/0.354, allocations: 2.594 kB / 0.5219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.592e-06/0.354, allocations: 80 / 0.5219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.723e-06/0.354, allocations: 3.984 kB / 0.5219 GB, free: 32.53 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001797/0.3542, allocations: 203.7 kB / 0.5221 GB, free: 32.36 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.56e-05/0.3542, allocations: 94.08 kB / 0.5222 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.198e-05/0.3543, allocations: 7.938 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.599e-05/0.3543, allocations: 2.938 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.079e-05/0.3544, allocations: 10.33 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.385e-05/0.3544, allocations: 3.406 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0001257/0.3545, allocations: 165.4 kB / 0.5223 GB, free: 32.15 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3545, allocations: 0 / 0.5223 GB, free: 32.15 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002352/0.3548, allocations: 29.16 kB / 0.5224 GB, free: 32.14 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.001223/0.356, allocations: 1.104 MB / 0.5234 GB, free: 31.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001583/0.3562, allocations: 59.16 kB / 0.5235 GB, free: 31.28 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.873e-06/0.3562, allocations: 0 / 0.5235 GB, free: 31.28 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.168e-05/0.3562, allocations: 28.5 kB / 0.5235 GB, free: 31.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003287/0.3566, allocations: 28.22 kB / 0.5236 GB, free: 31.26 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001031/0.3576, allocations: 0.8088 MB / 0.5243 GB, free: 30.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00015/0.3578, allocations: 0.7141 MB / 0.525 GB, free: 30.02 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.191e-05/0.3578, allocations: 39.88 kB / 0.5251 GB, free: 30 MB / 378.7 MB Notification: Performance of SimCode: time 2.91e-07/0.3578, allocations: 0 / 0.5251 GB, free: 30 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.826/3.184, allocations: 2.402 MB / 0.5274 GB, free: 29.75 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test40_fmu --startTime=0 --stopTime=100 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test40.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test40/Test40.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test40.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches