Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9.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.Test9,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test9",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test9,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test9",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001151/0.001151, allocations: 200.2 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.282/1.282, allocations: 226.5 MB / 243.4 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007438/0.0007438, allocations: 101 kB / 295.5 MB, free: 6.883 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2702/0.2702, allocations: 44.83 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002347/0.0002348, allocations: 11.94 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.265/0.2653, allocations: 62.96 MB / 0.516 GB, free: 36.98 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test9): time 0.001549/0.2668, allocations: 1.421 MB / 0.5174 GB, free: 35.94 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.2679, allocations: 0.954 MB / 0.5183 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.876e-05/0.268, allocations: 3.938 kB / 0.5183 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002706/0.2683, allocations: 76.03 kB / 0.5184 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000215/0.2685, allocations: 92.39 kB / 0.5185 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002302/0.2687, allocations: 104.3 kB / 0.5186 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001239/0.2689, allocations: 100.5 kB / 0.5187 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 7.885e-05/0.269, allocations: 6.641 kB / 0.5187 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.12e-05/0.269, allocations: 54.19 kB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.055e-05/0.2691, allocations: 40.66 kB / 0.5187 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.395e-05/0.2691, allocations: 2.844 kB / 0.5188 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.585e-05/0.2692, allocations: 41.69 kB / 0.5188 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.619e-05/0.2693, allocations: 25.06 kB / 0.5188 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 4.796e-05/0.2693, allocations: 65.53 kB / 0.5189 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001184/0.2694, allocations: 101 kB / 0.519 GB, free: 34.98 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.449e-06/0.2694, allocations: 0 / 0.519 GB, free: 34.98 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.2695, allocations: 0 / 0.519 GB, free: 34.98 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.118e-06/0.2695, allocations: 0 / 0.519 GB, free: 34.98 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.000378/0.2698, allocations: 401.9 kB / 0.5194 GB, free: 34.58 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.346e-05/0.2699, allocations: 14.72 kB / 0.5194 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.618e-05/0.2699, allocations: 30.75 kB / 0.5194 GB, free: 34.54 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.653e-05/0.2699, allocations: 15.41 kB / 0.5194 GB, free: 34.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001539/0.2701, allocations: 223.4 kB / 0.5196 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.089e-05/0.2701, allocations: 384 / 0.5196 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.746e-05/0.2701, allocations: 10.88 kB / 0.5196 GB, free: 34.3 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001174/0.2703, allocations: 59.39 kB / 0.5197 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.708e-06/0.2703, allocations: 0 / 0.5197 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.496e-06/0.2703, allocations: 0 / 0.5197 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2703, allocations: 2.781 kB / 0.5197 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.933e-05/0.2704, allocations: 20.19 kB / 0.5197 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002553/0.2706, allocations: 293.4 kB / 0.52 GB, free: 33.95 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000155/0.2708, allocations: 61.91 kB / 0.5201 GB, free: 33.91 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.254e-05/0.2709, allocations: 14.77 kB / 0.5201 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2e-05/0.2709, allocations: 2.781 kB / 0.5201 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001453/0.271, allocations: 71.55 kB / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.343e-06/0.271, allocations: 0 / 0.5201 GB, free: 33.84 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004542/0.2715, allocations: 177.3 kB / 0.5203 GB, free: 33.75 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.125e-05/0.2715, allocations: 51.41 kB / 0.5204 GB, free: 33.69 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001543/0.2717, allocations: 229.1 kB / 0.5206 GB, free: 33.54 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.02e-05/0.2717, allocations: 29.7 kB / 0.5206 GB, free: 33.51 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.79e-05/0.2718, allocations: 105.6 kB / 0.5207 GB, free: 33.41 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.077e-05/0.2718, allocations: 26.56 kB / 0.5207 GB, free: 33.39 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-06/0.2718, allocations: 2.844 kB / 0.5207 GB, free: 33.39 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.558e-05/0.2718, allocations: 321 kB / 0.521 GB, free: 33.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.045e-05/0.2719, allocations: 22.89 kB / 0.5211 GB, free: 33.07 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.504e-05/0.272, allocations: 35.78 kB / 0.5211 GB, free: 33.04 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.261e-05/0.2721, allocations: 59.8 kB / 0.5212 GB, free: 33 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.2721, allocations: 4 kB / 0.5212 GB, free: 33 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001432/0.2722, allocations: 101.9 kB / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.242e-05/0.2722, allocations: 6.031 kB / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.877e-06/0.2722, allocations: 0 / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.2723, allocations: 0 / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.867e-05/0.2723, allocations: 17.72 kB / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.29e-06/0.2724, allocations: 384 / 0.5213 GB, free: 32.94 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.644e-05/0.2724, allocations: 10.84 kB / 0.5213 GB, free: 32.93 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.023e-06/0.2724, allocations: 2.875 kB / 0.5213 GB, free: 32.93 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 6.987e-05/0.2725, allocations: 132.6 kB / 0.5214 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.754e-05/0.2725, allocations: 21.5 kB / 0.5214 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.495e-05/0.2726, allocations: 18.44 kB / 0.5215 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.824e-06/0.2726, allocations: 0 / 0.5215 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.198e-06/0.2726, allocations: 3.281 kB / 0.5215 GB, free: 32.79 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.126e-06/0.2726, allocations: 7.875 kB / 0.5215 GB, free: 32.78 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003124/0.2729, allocations: 397.8 kB / 0.5218 GB, free: 32.43 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.472e-06/0.2729, allocations: 7 kB / 0.5219 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.836e-05/0.2729, allocations: 5.969 kB / 0.5219 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.046e-06/0.273, allocations: 6.719 kB / 0.5219 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.747e-06/0.273, allocations: 0 / 0.5219 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.043e-06/0.273, allocations: 2.875 kB / 0.5219 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.714e-06/0.273, allocations: 3.891 kB / 0.5219 GB, free: 32.42 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001585/0.2731, allocations: 205.2 kB / 0.5221 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.943e-05/0.2732, allocations: 101.4 kB / 0.5222 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.13e-05/0.2732, allocations: 6.562 kB / 0.5222 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.672e-05/0.2733, allocations: 3 kB / 0.5222 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.146e-05/0.2733, allocations: 6.344 kB / 0.5222 GB, free: 32.13 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.255e-05/0.2733, allocations: 3.125 kB / 0.5222 GB, free: 32.13 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.665e-05/0.2734, allocations: 164.2 kB / 0.5223 GB, free: 32.04 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.21e-07/0.2734, allocations: 0 / 0.5223 GB, free: 32.04 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000232/0.2737, allocations: 28.8 kB / 0.5224 GB, free: 32.03 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.001126/0.2748, allocations: 1.109 MB / 0.5234 GB, free: 31.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001483/0.275, allocations: 51.61 kB / 0.5235 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.633e-06/0.275, allocations: 2.906 kB / 0.5235 GB, free: 31.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.825e-05/0.275, allocations: 34.02 kB / 0.5235 GB, free: 31.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003113/0.2754, allocations: 24.83 kB / 0.5236 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000966/0.2763, allocations: 0.8131 MB / 0.5244 GB, free: 30.61 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001163/0.2765, allocations: 0.7098 MB / 0.525 GB, free: 29.91 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.376e-05/0.2765, allocations: 39.97 kB / 0.5251 GB, free: 29.88 MB / 378.7 MB Notification: Performance of SimCode: time 2.41e-07/0.2765, allocations: 0 / 0.5251 GB, free: 29.88 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.839/3.116, allocations: 2.405 MB / 0.5274 GB, free: 29.62 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test9_fmu --startTime=0 --stopTime=3.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test9.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test9/Test9.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test9.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches