Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78.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.Test78,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test78",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test78,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test78",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001168/0.001168, allocations: 191 kB / 16.09 MB, free: 5.68 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.264/1.264, allocations: 226.5 MB / 243.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007683/0.0007683, allocations: 97.66 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2766/0.2766, allocations: 44.83 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002318/0.0002319, allocations: 12 kB / 465.4 MB, free: 12.56 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2536/0.2539, allocations: 62.97 MB / 0.516 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test78): time 0.001512/0.2554, allocations: 1.592 MB / 0.5175 GB, free: 36.06 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001135/0.2566, allocations: 1.074 MB / 0.5186 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.469e-05/0.2567, allocations: 2.5 kB / 0.5186 GB, free: 35.32 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003428/0.257, allocations: 247.4 kB / 0.5188 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002715/0.2573, allocations: 205 kB / 0.519 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003021/0.2576, allocations: 155.7 kB / 0.5192 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.000196/0.2578, allocations: 234.5 kB / 0.5194 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.163e-05/0.2579, allocations: 33.78 kB / 0.5194 GB, free: 35.04 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001107/0.258, allocations: 115.8 kB / 0.5195 GB, free: 35 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001247/0.2582, allocations: 151.7 kB / 0.5197 GB, free: 34.97 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.026e-05/0.2582, allocations: 3.906 kB / 0.5197 GB, free: 34.97 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.494e-05/0.2583, allocations: 57.08 kB / 0.5197 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.415e-05/0.2583, allocations: 59.08 kB / 0.5198 GB, free: 34.93 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.625e-05/0.2584, allocations: 116.8 kB / 0.5199 GB, free: 34.84 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001617/0.2586, allocations: 186 kB / 0.5201 GB, free: 34.78 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2586, allocations: 3.234 kB / 0.5201 GB, free: 34.78 MB / 378.7 MB Notification: Performance of FrontEnd: time 9.12e-07/0.2586, allocations: 0 / 0.5201 GB, free: 34.78 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.448e-06/0.2586, allocations: 0 / 0.5201 GB, free: 34.78 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0004843/0.2591, allocations: 0.5322 MB / 0.5206 GB, free: 34.29 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.015e-05/0.2591, allocations: 13.72 kB / 0.5206 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.896e-05/0.2592, allocations: 37.72 kB / 0.5206 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.92e-05/0.2592, allocations: 34.91 kB / 0.5207 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002145/0.2594, allocations: 298.5 kB / 0.521 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.319e-05/0.2595, allocations: 7.062 kB / 0.521 GB, free: 33.96 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.241e-05/0.2595, allocations: 13.34 kB / 0.521 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001838/0.2597, allocations: 106.9 kB / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.148e-05/0.2597, allocations: 5.625 kB / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.139e-05/0.2597, allocations: 4 kB / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.358e-06/0.2597, allocations: 3.156 kB / 0.5211 GB, free: 33.88 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001073/0.2598, allocations: 38.8 kB / 0.5211 GB, free: 33.87 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003725/0.2602, allocations: 495.8 kB / 0.5216 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002885/0.2605, allocations: 124.2 kB / 0.5217 GB, free: 33.37 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.993e-05/0.2606, allocations: 45.48 kB / 0.5218 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.928e-05/0.2606, allocations: 3.031 kB / 0.5218 GB, free: 33.34 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002096/0.2609, allocations: 113.1 kB / 0.5219 GB, free: 33.27 MB / 378.7 MB Notification: Performance of pre-optimization done (n=14): time 1.282e-06/0.2609, allocations: 4 kB / 0.5219 GB, free: 33.26 MB / 378.7 MB Notification: Performance of matching and sorting (n=22): time 0.001012/0.2619, allocations: 0.5081 MB / 0.5224 GB, free: 33.02 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.216e-05/0.2619, allocations: 79.95 kB / 0.5225 GB, free: 32.93 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003392/0.2623, allocations: 499.8 kB / 0.5229 GB, free: 32.72 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.509e-05/0.2623, allocations: 32.39 kB / 0.523 GB, free: 32.69 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.703e-05/0.2624, allocations: 166.5 kB / 0.5231 GB, free: 32.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.959e-05/0.2624, allocations: 76.62 kB / 0.5232 GB, free: 32.49 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.526e-06/0.2624, allocations: 4 kB / 0.5232 GB, free: 32.48 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.296e-05/0.2625, allocations: 348.9 kB / 0.5235 GB, free: 32.16 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001025/0.2626, allocations: 55.38 kB / 0.5236 GB, free: 32.14 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001052/0.2627, allocations: 88.22 kB / 0.5237 GB, free: 32.08 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002054/0.2629, allocations: 163 kB / 0.5238 GB, free: 31.98 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.62e-07/0.2629, allocations: 3 kB / 0.5238 GB, free: 31.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=26) (initialization): time 0.0002973/0.2632, allocations: 236.9 kB / 0.5241 GB, free: 31.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.012e-05/0.2632, allocations: 5.75 kB / 0.5241 GB, free: 31.87 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.619e-06/0.2632, allocations: 2.875 kB / 0.5241 GB, free: 31.87 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.059e-05/0.2633, allocations: 0 / 0.5241 GB, free: 31.87 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001244/0.2634, allocations: 49.77 kB / 0.5241 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.54e-06/0.2634, allocations: 6.875 kB / 0.5241 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.788e-05/0.2635, allocations: 10.95 kB / 0.5241 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.239e-05/0.2635, allocations: 12.06 kB / 0.5241 GB, free: 31.85 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,$whenCondition1,$PRE.t_new_2.nextTimeEvent,t_new_2.nextTimeEvent,$PRE.t_new_2.nextTimeEventScaled,t_new_2.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (26): * Single equations (assignments): 26 * 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.0001083/0.2636, allocations: 172.2 kB / 0.5243 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.182e-05/0.2637, allocations: 36.38 kB / 0.5243 GB, free: 31.69 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.018e-05/0.2637, allocations: 42.8 kB / 0.5244 GB, free: 31.67 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.725e-06/0.2637, allocations: 2.844 kB / 0.5244 GB, free: 31.67 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.248e-06/0.2637, allocations: 4 kB / 0.5244 GB, free: 31.67 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.127e-06/0.2637, allocations: 6.438 kB / 0.5244 GB, free: 31.66 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000626/0.2644, allocations: 0.7369 MB / 0.5251 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.925e-06/0.2644, allocations: 7 kB / 0.5251 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.016e-05/0.2645, allocations: 29.19 kB / 0.5251 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.966e-06/0.2645, allocations: 2.688 kB / 0.5251 GB, free: 31.12 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.489e-05/0.2645, allocations: 9.875 kB / 0.5252 GB, free: 31.11 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.2645, allocations: 0 / 0.5252 GB, free: 31.11 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.264e-06/0.2645, allocations: 9.734 kB / 0.5252 GB, free: 31.11 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.2648, allocations: 421.1 kB / 0.5256 GB, free: 30.8 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.564e-05/0.2649, allocations: 111.2 kB / 0.5257 GB, free: 30.68 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.639e-05/0.2649, allocations: 17.94 kB / 0.5257 GB, free: 30.67 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001324/0.2651, allocations: 8.812 kB / 0.5257 GB, free: 30.67 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.754e-05/0.2651, allocations: 29.27 kB / 0.5257 GB, free: 30.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.884e-05/0.2652, allocations: 10.5 kB / 0.5257 GB, free: 30.66 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0002404/0.2654, allocations: 372.4 kB / 0.5261 GB, free: 30.5 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2654, allocations: 3.938 kB / 0.5261 GB, free: 30.49 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0003047/0.2657, allocations: 49.56 kB / 0.5261 GB, free: 30.48 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,$whenCondition2,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 4 (t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 18 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001281/0.267, allocations: 1.35 MB / 0.5275 GB, free: 29.48 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002559/0.2673, allocations: 160.9 kB / 0.5276 GB, free: 29.43 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.2673, allocations: 4.062 kB / 0.5276 GB, free: 29.43 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001192/0.2674, allocations: 91.38 kB / 0.5277 GB, free: 29.39 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.2679, allocations: 55.42 kB / 0.5278 GB, free: 29.38 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001913/0.2698, allocations: 1.848 MB / 0.5296 GB, free: 28.38 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001636/0.27, allocations: 0.7894 MB / 0.5303 GB, free: 27.68 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001057/0.2701, allocations: 99.48 kB / 0.5304 GB, free: 27.61 MB / 378.7 MB Notification: Performance of SimCode: time 2.7e-07/0.2701, allocations: 0 / 0.5304 GB, free: 27.61 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.808/3.078, allocations: 4.861 MB / 0.5352 GB, free: 27.01 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test78_fmu --startTime=0 --stopTime=15 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test78.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test78/Test78.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test78.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches