Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.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.Test22,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test22",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test22,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test22",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 195 kB / 16.1 MB, free: 5.676 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.226/1.226, allocations: 226.5 MB / 243.4 MB, free: 8.211 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007845/0.0007848, allocations: 96.84 kB / 295.5 MB, free: 6.879 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.275/0.275, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002941/0.0002942, allocations: 15.94 kB / 465.4 MB, free: 12.52 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2745/0.2748, allocations: 62.95 MB / 0.516 GB, free: 37.15 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test22): time 0.001668/0.2766, allocations: 1.428 MB / 0.5174 GB, free: 36.11 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001172/0.2778, allocations: 0.9536 MB / 0.5183 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.183e-05/0.2778, allocations: 0 / 0.5183 GB, free: 35.45 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002654/0.2781, allocations: 44.2 kB / 0.5183 GB, free: 35.43 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002133/0.2783, allocations: 74.83 kB / 0.5184 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002486/0.2786, allocations: 99.48 kB / 0.5185 GB, free: 35.34 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001285/0.2787, allocations: 90.84 kB / 0.5186 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.608e-05/0.2788, allocations: 6.422 kB / 0.5186 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.666e-05/0.2789, allocations: 46.66 kB / 0.5186 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.762e-05/0.279, allocations: 22.73 kB / 0.5187 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.457e-05/0.279, allocations: 2.812 kB / 0.5187 GB, free: 35.27 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.196e-05/0.2791, allocations: 45.39 kB / 0.5187 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.709e-05/0.2791, allocations: 16.84 kB / 0.5187 GB, free: 35.25 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.379e-05/0.2792, allocations: 61.33 kB / 0.5188 GB, free: 35.19 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001311/0.2793, allocations: 93.73 kB / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.2793, allocations: 0 / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.2794, allocations: 0 / 0.5189 GB, free: 35.16 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.198e-06/0.2794, allocations: 0 / 0.5189 GB, free: 35.16 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.000423/0.2798, allocations: 394 kB / 0.5192 GB, free: 34.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.079e-05/0.2798, allocations: 11.89 kB / 0.5193 GB, free: 34.76 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.339e-05/0.2799, allocations: 33.59 kB / 0.5193 GB, free: 34.72 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.351e-05/0.2799, allocations: 18.62 kB / 0.5193 GB, free: 34.71 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001945/0.2801, allocations: 213.4 kB / 0.5195 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.578e-05/0.2801, allocations: 3.656 kB / 0.5195 GB, free: 34.49 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.925e-05/0.2802, allocations: 6.906 kB / 0.5195 GB, free: 34.48 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001402/0.2803, allocations: 55.8 kB / 0.5196 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.296e-05/0.2803, allocations: 6.781 kB / 0.5196 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.737e-06/0.2804, allocations: 0 / 0.5196 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.448e-06/0.2804, allocations: 0 / 0.5196 GB, free: 34.44 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.802e-05/0.2804, allocations: 18.75 kB / 0.5196 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002937/0.2807, allocations: 297.4 kB / 0.5199 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.2809, allocations: 56.14 kB / 0.5199 GB, free: 34.1 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.853e-05/0.2809, allocations: 17.64 kB / 0.5199 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.281, allocations: 0 / 0.5199 GB, free: 34.09 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001559/0.2811, allocations: 84.12 kB / 0.52 GB, free: 34.02 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.143e-06/0.2811, allocations: 0 / 0.52 GB, free: 34.02 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004797/0.2816, allocations: 165.2 kB / 0.5202 GB, free: 33.94 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.606e-05/0.2817, allocations: 59.34 kB / 0.5202 GB, free: 33.87 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001396/0.2818, allocations: 198.2 kB / 0.5204 GB, free: 33.74 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.127e-05/0.2818, allocations: 32.42 kB / 0.5205 GB, free: 33.71 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.791e-05/0.2819, allocations: 101.5 kB / 0.5206 GB, free: 33.61 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.205e-05/0.2819, allocations: 30.52 kB / 0.5206 GB, free: 33.59 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.278e-06/0.2819, allocations: 0 / 0.5206 GB, free: 33.59 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.75e-05/0.282, allocations: 321.7 kB / 0.5209 GB, free: 33.27 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.825e-05/0.282, allocations: 23.53 kB / 0.5209 GB, free: 33.26 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.225e-05/0.2821, allocations: 35.34 kB / 0.521 GB, free: 33.24 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.642e-05/0.2822, allocations: 61.58 kB / 0.521 GB, free: 33.2 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.31e-07/0.2822, allocations: 0 / 0.521 GB, free: 33.2 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001453/0.2823, allocations: 101.8 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.114e-05/0.2824, allocations: 2.812 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.258e-06/0.2824, allocations: 3.062 kB / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.152e-05/0.2824, allocations: 0 / 0.5211 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.286e-05/0.2825, allocations: 25.92 kB / 0.5211 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.13e-06/0.2825, allocations: 384 / 0.5211 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.611e-05/0.2825, allocations: 10.78 kB / 0.5211 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.484e-06/0.2826, allocations: 3.062 kB / 0.5212 GB, free: 33.12 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.526e-05/0.2826, allocations: 127.1 kB / 0.5213 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.81e-05/0.2827, allocations: 13.56 kB / 0.5213 GB, free: 33 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.229e-05/0.2827, allocations: 18.8 kB / 0.5213 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.104e-06/0.2827, allocations: 0 / 0.5213 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.608e-06/0.2827, allocations: 0 / 0.5213 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.48e-06/0.2827, allocations: 3.938 kB / 0.5213 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003481/0.2831, allocations: 398.6 kB / 0.5217 GB, free: 32.63 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.673e-06/0.2831, allocations: 4.031 kB / 0.5217 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.998e-05/0.2831, allocations: 10.91 kB / 0.5217 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.198e-06/0.2832, allocations: 7.25 kB / 0.5217 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.457e-06/0.2832, allocations: 0 / 0.5217 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.2832, allocations: 0 / 0.5217 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.563e-06/0.2832, allocations: 6.812 kB / 0.5217 GB, free: 32.62 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001796/0.2834, allocations: 201.3 kB / 0.5219 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.294e-05/0.2834, allocations: 91.23 kB / 0.522 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.203e-05/0.2834, allocations: 7 kB / 0.522 GB, free: 32.35 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.838e-05/0.2835, allocations: 4 kB / 0.522 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.59e-05/0.2836, allocations: 9.094 kB / 0.522 GB, free: 32.34 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.311e-05/0.2836, allocations: 2.906 kB / 0.522 GB, free: 32.34 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000108/0.2837, allocations: 144.2 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2837, allocations: 0 / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002362/0.2839, allocations: 28.84 kB / 0.5222 GB, free: 32.24 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.001267/0.2852, allocations: 1.101 MB / 0.5233 GB, free: 31.4 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00015/0.2854, allocations: 58.31 kB / 0.5233 GB, free: 31.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.174e-06/0.2854, allocations: 0 / 0.5233 GB, free: 31.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.178e-05/0.2854, allocations: 24.69 kB / 0.5233 GB, free: 31.38 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003286/0.2858, allocations: 32.14 kB / 0.5234 GB, free: 31.36 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009463/0.2867, allocations: 0.7627 MB / 0.5241 GB, free: 30.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001108/0.2869, allocations: 0.7104 MB / 0.5248 GB, free: 30.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.476e-05/0.2869, allocations: 38.52 kB / 0.5248 GB, free: 30.11 MB / 378.7 MB Notification: Performance of SimCode: time 2.5e-07/0.2869, allocations: 0 / 0.5248 GB, free: 30.11 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.896/3.183, allocations: 2.293 MB / 0.5271 GB, free: 29.88 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test22_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test22.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test22/Test22.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test22.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches