Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.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.Test87,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test87",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test87,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test87",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00102/0.00102, allocations: 200.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.167/1.167, allocations: 226.5 MB / 243.4 MB, free: 8.113 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008265/0.0008265, allocations: 108.7 kB / 295.5 MB, free: 6.871 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2731/0.2731, allocations: 44.81 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002701/0.0002701, allocations: 12 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.261/0.2613, allocations: 62.95 MB / 0.516 GB, free: 37.05 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test87): time 0.001937/0.2633, allocations: 1.908 MB / 0.5178 GB, free: 35.66 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001388/0.2647, allocations: 1.287 MB / 0.5191 GB, free: 34.78 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001093/0.2648, allocations: 6.938 kB / 0.5191 GB, free: 34.77 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003046/0.2651, allocations: 120.5 kB / 0.5192 GB, free: 34.74 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003265/0.2655, allocations: 210.3 kB / 0.5194 GB, free: 34.64 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004895/0.266, allocations: 288.6 kB / 0.5197 GB, free: 34.5 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003171/0.2663, allocations: 393.9 kB / 0.5201 GB, free: 34.33 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001365/0.2664, allocations: 59.48 kB / 0.5201 GB, free: 34.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000234/0.2667, allocations: 245 kB / 0.5203 GB, free: 34.23 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001239/0.2668, allocations: 150.2 kB / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 3.156e-05/0.2669, allocations: 8.062 kB / 0.5205 GB, free: 34.17 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001134/0.267, allocations: 61 kB / 0.5206 GB, free: 34.15 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001054/0.2671, allocations: 136.8 kB / 0.5207 GB, free: 34.11 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000161/0.2673, allocations: 207.4 kB / 0.5209 GB, free: 33.95 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002531/0.2675, allocations: 347.6 kB / 0.5212 GB, free: 33.84 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.26e-06/0.2675, allocations: 0 / 0.5212 GB, free: 33.84 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.2675, allocations: 0 / 0.5212 GB, free: 33.84 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.452e-06/0.2676, allocations: 0 / 0.5212 GB, free: 33.84 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007596/0.2683, allocations: 0.8102 MB / 0.522 GB, free: 33.18 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.425e-05/0.2684, allocations: 8.781 kB / 0.522 GB, free: 33.18 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.908e-05/0.2684, allocations: 45.12 kB / 0.5221 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.513e-05/0.2685, allocations: 75.59 kB / 0.5221 GB, free: 33.1 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003424/0.2688, allocations: 442.8 kB / 0.5226 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.445e-05/0.2688, allocations: 13.19 kB / 0.5226 GB, free: 32.75 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.092e-05/0.2689, allocations: 16.69 kB / 0.5226 GB, free: 32.74 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002932/0.2692, allocations: 198.7 kB / 0.5228 GB, free: 32.63 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.473e-05/0.2692, allocations: 3.031 kB / 0.5228 GB, free: 32.63 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.2692, allocations: 6.5 kB / 0.5228 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2692, allocations: 2.656 kB / 0.5228 GB, free: 32.62 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001872/0.2694, allocations: 99.31 kB / 0.5229 GB, free: 32.59 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006138/0.2701, allocations: 0.8262 MB / 0.5237 GB, free: 31.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004834/0.2706, allocations: 252.6 kB / 0.5239 GB, free: 31.79 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001407/0.2707, allocations: 83.53 kB / 0.524 GB, free: 31.75 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.28e-05/0.2707, allocations: 14.16 kB / 0.524 GB, free: 31.74 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002942/0.271, allocations: 198 kB / 0.5242 GB, free: 31.62 MB / 378.7 MB Notification: Performance of pre-optimization done (n=28): time 1.673e-06/0.271, allocations: 0 / 0.5242 GB, free: 31.62 MB / 378.7 MB Notification: Performance of matching and sorting (n=44): time 0.001979/0.273, allocations: 1.167 MB / 0.5253 GB, free: 31.04 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.6e-05/0.2731, allocations: 136.7 kB / 0.5255 GB, free: 30.88 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008422/0.2739, allocations: 0.9526 MB / 0.5264 GB, free: 30.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 2.733e-05/0.274, allocations: 40.33 kB / 0.5264 GB, free: 30.5 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001552/0.2741, allocations: 272.9 kB / 0.5267 GB, free: 30.28 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.262e-05/0.2742, allocations: 142.1 kB / 0.5268 GB, free: 30.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.757e-05/0.2743, allocations: 10.62 kB / 0.5269 GB, free: 30.16 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.98e-05/0.2743, allocations: 315.9 kB / 0.5272 GB, free: 29.86 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001962/0.2745, allocations: 117.5 kB / 0.5273 GB, free: 29.81 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002141/0.2748, allocations: 186.3 kB / 0.5274 GB, free: 29.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004267/0.2752, allocations: 315.6 kB / 0.5277 GB, free: 29.51 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.246e-06/0.2752, allocations: 0 / 0.5277 GB, free: 29.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.0005926/0.2758, allocations: 443.9 kB / 0.5282 GB, free: 29.32 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.468e-05/0.2759, allocations: 8.156 kB / 0.5282 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.262e-06/0.2759, allocations: 2.469 kB / 0.5282 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.416e-05/0.2759, allocations: 2.656 kB / 0.5282 GB, free: 29.32 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000235/0.2761, allocations: 99.14 kB / 0.5283 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.526e-06/0.2761, allocations: 7.531 kB / 0.5283 GB, free: 29.3 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001385/0.2763, allocations: 17.12 kB / 0.5283 GB, free: 29.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.236e-05/0.2763, allocations: 18.31 kB / 0.5283 GB, free: 29.29 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition4,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,$whenCondition3,$PRE.t_new_2.nextTimeEvent,t_new_2.nextTimeEvent,$PRE.t_new_2.nextTimeEventScaled,t_new_2.nextTimeEventScaled,$whenCondition2,$PRE.t_new_3.nextTimeEvent,t_new_3.nextTimeEvent,$PRE.t_new_3.nextTimeEventScaled,t_new_3.nextTimeEventScaled,$whenCondition1,$PRE.t_new_4.nextTimeEvent,t_new_4.nextTimeEvent,$PRE.t_new_4.nextTimeEventScaled,t_new_4.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (52): * Single equations (assignments): 52 * 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.0001917/0.2765, allocations: 250 kB / 0.5286 GB, free: 29.13 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.965e-05/0.2766, allocations: 74.22 kB / 0.5286 GB, free: 29.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001121/0.2767, allocations: 89.45 kB / 0.5287 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.43e-06/0.2767, allocations: 5.312 kB / 0.5287 GB, free: 29.05 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.691e-06/0.2767, allocations: 11.88 kB / 0.5287 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.27e-06/0.2767, allocations: 6.25 kB / 0.5287 GB, free: 29.04 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001192/0.2779, allocations: 1.336 MB / 0.53 GB, free: 28.17 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.577e-06/0.2779, allocations: 2.812 kB / 0.53 GB, free: 28.17 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000132/0.2781, allocations: 63.27 kB / 0.5301 GB, free: 28.16 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.858e-06/0.2781, allocations: 3.219 kB / 0.5301 GB, free: 28.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.381e-05/0.2781, allocations: 23.44 kB / 0.5301 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.998e-06/0.2781, allocations: 6.031 kB / 0.5301 GB, free: 28.15 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.436e-06/0.2781, allocations: 10.78 kB / 0.5301 GB, free: 28.14 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005889/0.2787, allocations: 0.7786 MB / 0.5309 GB, free: 27.57 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001368/0.2789, allocations: 193.5 kB / 0.5311 GB, free: 27.42 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.127e-05/0.2789, allocations: 23.28 kB / 0.5311 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002563/0.2792, allocations: 18.12 kB / 0.5311 GB, free: 27.4 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.055e-05/0.2793, allocations: 44.42 kB / 0.5312 GB, free: 27.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.207e-05/0.2794, allocations: 19.59 kB / 0.5312 GB, free: 27.39 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005189/0.2799, allocations: 0.7001 MB / 0.5319 GB, free: 27.14 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.2799, allocations: 4 kB / 0.5319 GB, free: 27.13 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0004381/0.2803, allocations: 90.67 kB / 0.532 GB, free: 27.12 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * Number of states: 0 () * Number of discrete variables: 12 ($whenCondition1,t_new_4.nextTimeEvent,t_new_4.nextTimeEventScaled,$whenCondition2,t_new_3.nextTimeEvent,t_new_3.nextTimeEventScaled,$whenCondition3,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,$whenCondition4,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 8 (t_new.nextTimeEvent,t_new.nextTimeEventScaled,t_new_2.nextTimeEvent,t_new_2.nextTimeEventScaled,t_new_3.nextTimeEvent,t_new_3.nextTimeEventScaled,t_new_4.nextTimeEvent,t_new_4.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (44): * Single equations (assignments): 36 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 8 * 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.001609/0.2819, allocations: 1.76 MB / 0.5337 GB, free: 25.83 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004684/0.2824, allocations: 311 kB / 0.534 GB, free: 25.73 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.984e-06/0.2824, allocations: 0 / 0.534 GB, free: 25.73 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002287/0.2827, allocations: 158.7 kB / 0.5341 GB, free: 25.68 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001032/0.2837, allocations: 126 kB / 0.5342 GB, free: 25.64 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00374/0.2875, allocations: 3.668 MB / 0.5378 GB, free: 23.81 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.2878, allocations: 0.9146 MB / 0.5387 GB, free: 23.1 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001986/0.288, allocations: 215.6 kB / 0.5389 GB, free: 22.95 MB / 378.7 MB Notification: Performance of SimCode: time 3.6e-07/0.288, allocations: 2.75 kB / 0.5389 GB, free: 22.95 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.981/3.269, allocations: 8.602 MB / 0.5473 GB, free: 21.36 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test87_fmu --startTime=0 --stopTime=11 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test87.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test87/Test87.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test87.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches