Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.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.Test20,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test20",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test20,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test20",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009762/0.0009763, allocations: 195.1 kB / 16.1 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.299/1.299, allocations: 226.5 MB / 243.4 MB, free: 8.109 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007192/0.0007193, allocations: 100.3 kB / 295.5 MB, free: 6.887 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3317/0.3317, allocations: 44.82 MB / 392.3 MB, free: 35.71 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002603/0.0002605, allocations: 8 kB / 465.4 MB, free: 12.58 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2818/0.2821, allocations: 62.96 MB / 0.516 GB, free: 36.97 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test20): time 0.001884/0.284, allocations: 1.424 MB / 0.5174 GB, free: 35.93 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001315/0.2853, allocations: 0.9506 MB / 0.5183 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.2855, allocations: 0 / 0.5183 GB, free: 35.28 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003241/0.2858, allocations: 41.88 kB / 0.5183 GB, free: 35.26 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003176/0.2862, allocations: 76.02 kB / 0.5184 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00033/0.2865, allocations: 94.67 kB / 0.5185 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001713/0.2867, allocations: 93.55 kB / 0.5186 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.532e-05/0.2868, allocations: 10.48 kB / 0.5186 GB, free: 35.13 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.938e-05/0.2869, allocations: 43.64 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.739e-05/0.287, allocations: 23.2 kB / 0.5187 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.51e-05/0.287, allocations: 2.875 kB / 0.5187 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001505/0.2871, allocations: 45.89 kB / 0.5187 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 5.395e-05/0.2872, allocations: 12.89 kB / 0.5187 GB, free: 35.08 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 6.093e-05/0.2873, allocations: 61.3 kB / 0.5188 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001553/0.2874, allocations: 91.53 kB / 0.5189 GB, free: 35 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.959e-06/0.2875, allocations: 0 / 0.5189 GB, free: 35 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2875, allocations: 4 kB / 0.5189 GB, free: 34.99 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.609e-06/0.2875, allocations: 0 / 0.5189 GB, free: 34.99 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.0005395/0.288, allocations: 392.3 kB / 0.5192 GB, free: 34.6 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.2881, allocations: 13.78 kB / 0.5193 GB, free: 34.59 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.2881, allocations: 33.41 kB / 0.5193 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.211e-05/0.2882, allocations: 17.72 kB / 0.5193 GB, free: 34.55 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001851/0.2884, allocations: 212.8 kB / 0.5195 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.344e-05/0.2884, allocations: 3.312 kB / 0.5195 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.535e-05/0.2884, allocations: 7.938 kB / 0.5195 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001336/0.2885, allocations: 53.41 kB / 0.5196 GB, free: 34.28 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2886, allocations: 6.781 kB / 0.5196 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.458e-06/0.2886, allocations: 0 / 0.5196 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.401e-06/0.2886, allocations: 3.422 kB / 0.5196 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 6.861e-05/0.2887, allocations: 18.94 kB / 0.5196 GB, free: 34.27 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003031/0.289, allocations: 288 kB / 0.5199 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001447/0.2891, allocations: 61.84 kB / 0.5199 GB, free: 33.94 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 4.644e-05/0.2892, allocations: 20.34 kB / 0.5199 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.23e-05/0.2892, allocations: 0 / 0.5199 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001488/0.2894, allocations: 83.66 kB / 0.52 GB, free: 33.86 MB / 378.7 MB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.2894, allocations: 0 / 0.52 GB, free: 33.86 MB / 378.7 MB Notification: Performance of matching and sorting (n=8): time 0.0004912/0.2899, allocations: 165.5 kB / 0.5202 GB, free: 33.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.505e-05/0.2899, allocations: 62.31 kB / 0.5202 GB, free: 33.7 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.2901, allocations: 198 kB / 0.5204 GB, free: 33.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.424e-05/0.2901, allocations: 29.7 kB / 0.5205 GB, free: 33.54 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.466e-05/0.2902, allocations: 105.2 kB / 0.5206 GB, free: 33.44 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.438e-05/0.2902, allocations: 25.64 kB / 0.5206 GB, free: 33.42 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.138e-06/0.2902, allocations: 0 / 0.5206 GB, free: 33.42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.749e-05/0.2902, allocations: 321.3 kB / 0.5209 GB, free: 33.11 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.898e-05/0.2903, allocations: 28.52 kB / 0.5209 GB, free: 33.09 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.219e-05/0.2904, allocations: 33 kB / 0.5209 GB, free: 33.07 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.408e-05/0.2905, allocations: 59.34 kB / 0.521 GB, free: 33.04 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.71e-07/0.2905, allocations: 3.938 kB / 0.521 GB, free: 33.03 MB / 378.7 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.000146/0.2906, allocations: 96.78 kB / 0.5211 GB, free: 32.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.413e-05/0.2906, allocations: 5.531 kB / 0.5211 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.669e-06/0.2907, allocations: 4.031 kB / 0.5211 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.535e-05/0.2907, allocations: 0 / 0.5211 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.133e-05/0.2908, allocations: 22.08 kB / 0.5211 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5e-06/0.2908, allocations: 0 / 0.5211 GB, free: 32.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.608e-05/0.2908, allocations: 10.69 kB / 0.5211 GB, free: 32.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.945e-06/0.2908, allocations: 3.281 kB / 0.5211 GB, free: 32.96 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.868e-05/0.2909, allocations: 121.5 kB / 0.5213 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.576e-05/0.2909, allocations: 13.41 kB / 0.5213 GB, free: 32.84 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.758e-05/0.291, allocations: 30.2 kB / 0.5213 GB, free: 32.82 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.717e-06/0.291, allocations: 7.016 kB / 0.5213 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.908e-06/0.291, allocations: 0 / 0.5213 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.827e-06/0.291, allocations: 3.938 kB / 0.5213 GB, free: 32.81 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003455/0.2914, allocations: 397.2 kB / 0.5217 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2914, allocations: 0 / 0.5217 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.762e-05/0.2914, allocations: 6.812 kB / 0.5217 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.2914, allocations: 3.938 kB / 0.5217 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.616e-06/0.2914, allocations: 7.969 kB / 0.5217 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.563e-06/0.2914, allocations: 0 / 0.5217 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.873e-06/0.2914, allocations: 0 / 0.5217 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001668/0.2916, allocations: 211.7 kB / 0.5219 GB, free: 32.28 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.929e-05/0.2916, allocations: 87.22 kB / 0.522 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.219e-05/0.2917, allocations: 6.844 kB / 0.522 GB, free: 32.18 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.663e-05/0.2917, allocations: 4.375 kB / 0.522 GB, free: 32.17 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.874e-05/0.2918, allocations: 10.62 kB / 0.522 GB, free: 32.17 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.362e-05/0.2918, allocations: 7.719 kB / 0.522 GB, free: 32.16 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.979e-05/0.2919, allocations: 149.2 kB / 0.5222 GB, free: 32.07 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2919, allocations: 0 / 0.5222 GB, free: 32.07 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002417/0.2921, allocations: 24.53 kB / 0.5222 GB, free: 32.06 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.00116/0.2933, allocations: 1.09 MB / 0.5233 GB, free: 31.23 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001622/0.2935, allocations: 61.92 kB / 0.5233 GB, free: 31.2 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.315e-06/0.2935, allocations: 0 / 0.5233 GB, free: 31.2 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 5.958e-05/0.2936, allocations: 25.33 kB / 0.5233 GB, free: 31.2 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003264/0.2939, allocations: 29.41 kB / 0.5234 GB, free: 31.19 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009856/0.2949, allocations: 0.7654 MB / 0.5241 GB, free: 30.66 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001377/0.295, allocations: 0.7125 MB / 0.5248 GB, free: 29.96 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.659e-05/0.2951, allocations: 35.56 kB / 0.5248 GB, free: 29.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.61e-07/0.2951, allocations: 0 / 0.5248 GB, free: 29.93 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.902/3.198, allocations: 2.297 MB / 0.5271 GB, free: 29.7 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test20_fmu --startTime=0 --stopTime=2.5 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test20.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.pipe 2>&1) diffSimulationResults("ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Tables/CombiTimeTable/Test20/Test20.csv","../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test20.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches