Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31.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.Test31,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test31",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test31,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test31",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001231/0.001231, allocations: 199 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.341/1.341, allocations: 226.5 MB / 243.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008554/0.0008554, allocations: 102.5 kB / 295.5 MB, free: 6.66 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3453/0.3453, allocations: 44.82 MB / 392.3 MB, free: 35.66 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000275/0.0002752, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.283/0.2833, allocations: 62.96 MB / 0.516 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test31): time 0.00158/0.285, allocations: 1.428 MB / 0.5174 GB, free: 36.24 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.00108/0.286, allocations: 0.9513 MB / 0.5183 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.317e-05/0.2861, allocations: 0 / 0.5183 GB, free: 35.59 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002464/0.2864, allocations: 40.62 kB / 0.5183 GB, free: 35.57 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001986/0.2866, allocations: 68.98 kB / 0.5184 GB, free: 35.53 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000218/0.2868, allocations: 95.36 kB / 0.5185 GB, free: 35.49 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001253/0.287, allocations: 94.53 kB / 0.5186 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.473e-05/0.287, allocations: 10.17 kB / 0.5186 GB, free: 35.44 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 6.999e-05/0.2871, allocations: 40.41 kB / 0.5186 GB, free: 35.42 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.039e-05/0.2872, allocations: 31.06 kB / 0.5187 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.362e-05/0.2872, allocations: 2.969 kB / 0.5187 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.101e-05/0.2873, allocations: 37.19 kB / 0.5187 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.054e-05/0.2873, allocations: 18.03 kB / 0.5187 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.269e-05/0.2874, allocations: 69.64 kB / 0.5188 GB, free: 35.33 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001144/0.2875, allocations: 81.53 kB / 0.5189 GB, free: 35.3 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.638e-06/0.2875, allocations: 0 / 0.5189 GB, free: 35.3 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.062e-06/0.2875, allocations: 0 / 0.5189 GB, free: 35.3 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.2876, allocations: 0 / 0.5189 GB, free: 35.3 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.0003652/0.2879, allocations: 402.3 kB / 0.5192 GB, free: 34.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.353e-05/0.288, allocations: 7.969 kB / 0.5192 GB, free: 34.9 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.06e-05/0.288, allocations: 41 kB / 0.5193 GB, free: 34.86 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.851e-05/0.288, allocations: 14.03 kB / 0.5193 GB, free: 34.85 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001585/0.2882, allocations: 204.8 kB / 0.5195 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.175e-05/0.2882, allocations: 3 kB / 0.5195 GB, free: 34.64 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.837e-05/0.2882, allocations: 10.78 kB / 0.5195 GB, free: 34.63 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001242/0.2884, allocations: 55.59 kB / 0.5196 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.468e-06/0.2884, allocations: 4 kB / 0.5196 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.357e-06/0.2884, allocations: 4 kB / 0.5196 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.929e-06/0.2884, allocations: 2.969 kB / 0.5196 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.229e-05/0.2885, allocations: 16.3 kB / 0.5196 GB, free: 34.58 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002709/0.2888, allocations: 293 kB / 0.5199 GB, free: 34.29 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001379/0.2889, allocations: 57.73 kB / 0.5199 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.527e-05/0.289, allocations: 25.05 kB / 0.5199 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.141e-05/0.289, allocations: 2.969 kB / 0.5199 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001409/0.2891, allocations: 77.45 kB / 0.52 GB, free: 34.16 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.974e-06/0.2892, allocations: 3.984 kB / 0.52 GB, free: 34.16 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004484/0.2896, allocations: 167.6 kB / 0.5202 GB, free: 34.08 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.402e-05/0.2896, allocations: 59.34 kB / 0.5202 GB, free: 34.01 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001394/0.2898, allocations: 201.8 kB / 0.5204 GB, free: 33.88 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.069e-05/0.2898, allocations: 28.77 kB / 0.5205 GB, free: 33.84 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.371e-05/0.2898, allocations: 98.52 kB / 0.5206 GB, free: 33.75 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.366e-05/0.2899, allocations: 28.91 kB / 0.5206 GB, free: 33.73 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.069e-06/0.2899, allocations: 4 kB / 0.5206 GB, free: 33.73 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.797e-05/0.2899, allocations: 321.1 kB / 0.5209 GB, free: 33.41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.091e-05/0.29, allocations: 22.7 kB / 0.5209 GB, free: 33.4 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.141e-05/0.29, allocations: 36.75 kB / 0.5209 GB, free: 33.38 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.27e-05/0.2901, allocations: 58.45 kB / 0.521 GB, free: 33.34 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.41e-07/0.2902, allocations: 3.938 kB / 0.521 GB, free: 33.34 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0001473/0.2903, allocations: 104.9 kB / 0.5211 GB, free: 33.27 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.268e-05/0.2903, allocations: 5.766 kB / 0.5211 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.898e-06/0.2903, allocations: 2.844 kB / 0.5211 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.156e-05/0.2904, allocations: 0 / 0.5211 GB, free: 33.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001002/0.2905, allocations: 26.88 kB / 0.5211 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.448e-06/0.2905, allocations: 0 / 0.5211 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.48e-05/0.2905, allocations: 10.78 kB / 0.5212 GB, free: 33.26 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.243e-06/0.2905, allocations: 3.125 kB / 0.5212 GB, free: 33.26 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.622e-05/0.2906, allocations: 123.6 kB / 0.5213 GB, free: 33.14 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.472e-05/0.2906, allocations: 6.875 kB / 0.5213 GB, free: 33.13 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.51e-05/0.2907, allocations: 18.83 kB / 0.5213 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.006e-06/0.2907, allocations: 2.906 kB / 0.5213 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.848e-06/0.2907, allocations: 0 / 0.5213 GB, free: 33.12 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.396e-06/0.2907, allocations: 11.88 kB / 0.5213 GB, free: 33.11 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003055/0.291, allocations: 388.2 kB / 0.5217 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.523e-06/0.291, allocations: 0 / 0.5217 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.943e-05/0.291, allocations: 11.59 kB / 0.5217 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2911, allocations: 3.938 kB / 0.5217 GB, free: 32.77 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.877e-06/0.2911, allocations: 4 kB / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.443e-06/0.2911, allocations: 3.031 kB / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.2911, allocations: 0 / 0.5217 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001621/0.2912, allocations: 210.7 kB / 0.5219 GB, free: 32.59 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.849e-05/0.2913, allocations: 88.3 kB / 0.522 GB, free: 32.49 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.237e-05/0.2913, allocations: 10.36 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.656e-05/0.2914, allocations: 4 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.957e-05/0.2914, allocations: 9.188 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.353e-05/0.2914, allocations: 7.031 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.421e-05/0.2915, allocations: 143.1 kB / 0.5222 GB, free: 32.38 MB / 378.7 MB Notification: Performance of sort global known variables: time 1e-07/0.2915, allocations: 0 / 0.5222 GB, free: 32.38 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002325/0.2918, allocations: 28.2 kB / 0.5222 GB, free: 32.38 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.001151/0.2929, allocations: 1.098 MB / 0.5233 GB, free: 31.53 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001499/0.2931, allocations: 59.23 kB / 0.5233 GB, free: 31.51 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.643e-06/0.2931, allocations: 0 / 0.5233 GB, free: 31.51 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 6.05e-05/0.2932, allocations: 35.2 kB / 0.5233 GB, free: 31.5 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003195/0.2935, allocations: 18.23 kB / 0.5234 GB, free: 31.49 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009911/0.2945, allocations: 0.7714 MB / 0.5241 GB, free: 30.96 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001302/0.2946, allocations: 0.7036 MB / 0.5248 GB, free: 30.27 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.97e-05/0.2947, allocations: 38.83 kB / 0.5248 GB, free: 30.24 MB / 378.7 MB Notification: Performance of SimCode: time 5.21e-07/0.2947, allocations: 0 / 0.5248 GB, free: 30.24 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.804/3.099, allocations: 2.293 MB / 0.5271 GB, free: 30 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test31_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test31.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test31/Test31.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test31.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches