Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test72.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.Test72,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test72",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test72,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test72",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001478/0.001478, allocations: 200 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.313/1.313, allocations: 226.5 MB / 243.4 MB, free: 6.5 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007958/0.0007959, allocations: 98.91 kB / 295.5 MB, free: 6.656 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3014/0.3014, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002462/0.0002462, allocations: 11.98 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2802/0.2804, allocations: 62.95 MB / 0.516 GB, free: 37.23 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test72): time 0.001673/0.2822, allocations: 1.514 MB / 0.5174 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001316/0.2835, allocations: 1.048 MB / 0.5185 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000118/0.2837, allocations: 2.969 kB / 0.5185 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003895/0.2841, allocations: 296.1 kB / 0.5188 GB, free: 35.36 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003432/0.2844, allocations: 234.7 kB / 0.519 GB, free: 35.29 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003722/0.2848, allocations: 145.9 kB / 0.5191 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002456/0.285, allocations: 218.2 kB / 0.5193 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 4.995e-05/0.2851, allocations: 18.53 kB / 0.5193 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001452/0.2853, allocations: 117.3 kB / 0.5195 GB, free: 35.1 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001609/0.2854, allocations: 164.2 kB / 0.5196 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.379e-05/0.2855, allocations: 2.938 kB / 0.5196 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.397e-05/0.2856, allocations: 43.53 kB / 0.5197 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 9.286e-05/0.2857, allocations: 136.2 kB / 0.5198 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 9.783e-05/0.2858, allocations: 159.2 kB / 0.5199 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002243/0.286, allocations: 283.8 kB / 0.5202 GB, free: 34.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.286, allocations: 3.938 kB / 0.5202 GB, free: 34.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.323e-06/0.286, allocations: 3.328 kB / 0.5202 GB, free: 34.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.951e-06/0.286, allocations: 0 / 0.5202 GB, free: 34.82 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: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0006419/0.2867, allocations: 0.6781 MB / 0.5209 GB, free: 34.24 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.336e-05/0.2867, allocations: 9.094 kB / 0.5209 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.388e-05/0.2867, allocations: 30.75 kB / 0.5209 GB, free: 34.2 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.241e-05/0.2868, allocations: 52.12 kB / 0.521 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004026/0.2872, allocations: 463.5 kB / 0.5214 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.123e-05/0.2872, allocations: 7.562 kB / 0.5214 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.073e-05/0.2873, allocations: 6.562 kB / 0.5214 GB, free: 33.84 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001487/0.2874, allocations: 85.98 kB / 0.5215 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.826e-06/0.2874, allocations: 0 / 0.5215 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.045e-05/0.2874, allocations: 0 / 0.5215 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.318e-06/0.2875, allocations: 2.438 kB / 0.5215 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.993e-05/0.2876, allocations: 29.36 kB / 0.5215 GB, free: 33.77 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002835/0.2879, allocations: 383.9 kB / 0.5219 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000203/0.2881, allocations: 109 kB / 0.522 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.612e-05/0.2882, allocations: 46.11 kB / 0.522 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.2882, allocations: 0 / 0.522 GB, free: 33.4 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001942/0.2884, allocations: 108.5 kB / 0.5221 GB, free: 33.32 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.193e-06/0.2884, allocations: 3.938 kB / 0.5222 GB, free: 33.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0003899/0.2888, allocations: 197.3 kB / 0.5223 GB, free: 33.22 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.229e-05/0.2888, allocations: 80.11 kB / 0.5224 GB, free: 33.13 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008604/0.2897, allocations: 1.057 MB / 0.5234 GB, free: 32.77 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.249e-05/0.2897, allocations: 29.7 kB / 0.5235 GB, free: 32.74 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001158/0.2898, allocations: 231.8 kB / 0.5237 GB, free: 32.55 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.981e-05/0.2899, allocations: 32.47 kB / 0.5237 GB, free: 32.53 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.478e-06/0.2899, allocations: 0 / 0.5237 GB, free: 32.53 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.79e-05/0.29, allocations: 370.7 kB / 0.5241 GB, free: 32.19 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.434e-05/0.29, allocations: 33.95 kB / 0.5241 GB, free: 32.18 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.687e-05/0.2901, allocations: 57.66 kB / 0.5242 GB, free: 32.13 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001376/0.2903, allocations: 84.86 kB / 0.5243 GB, free: 32.08 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.885e-06/0.2903, allocations: 3.938 kB / 0.5243 GB, free: 32.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002492/0.2905, allocations: 177.9 kB / 0.5244 GB, free: 31.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.846e-06/0.2905, allocations: 3.875 kB / 0.5244 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.858e-06/0.2906, allocations: 3.031 kB / 0.5244 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 6.923e-06/0.2906, allocations: 3.938 kB / 0.5244 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.804e-05/0.2907, allocations: 22.38 kB / 0.5245 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.04e-06/0.2907, allocations: 64 / 0.5245 GB, free: 31.97 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.846e-05/0.2908, allocations: 17.25 kB / 0.5245 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2908, allocations: 6 kB / 0.5245 GB, free: 31.96 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,$PRE.startTime.nextTimeEvent,startTime.nextTimeEvent,$PRE.startTime.nextTimeEventScaled,startTime.nextTimeEventScaled,$whenCondition1,$PRE.startTime_0.nextTimeEvent,startTime_0.nextTimeEvent,$PRE.startTime_0.nextTimeEventScaled,startTime_0.nextTimeEventScaled) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (14): * Single equations (assignments): 14 * 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.0001518/0.2909, allocations: 231.6 kB / 0.5247 GB, free: 31.82 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.91e-05/0.291, allocations: 51.03 kB / 0.5247 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.213e-05/0.2911, allocations: 60.91 kB / 0.5248 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.355e-06/0.2911, allocations: 3.969 kB / 0.5248 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.534e-06/0.2911, allocations: 0 / 0.5248 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.2911, allocations: 3.234 kB / 0.5248 GB, free: 31.76 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002154/0.2913, allocations: 350.3 kB / 0.5251 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.503e-06/0.2913, allocations: 0 / 0.5251 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.273e-05/0.2914, allocations: 7.781 kB / 0.5252 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.084e-06/0.2914, allocations: 4 kB / 0.5252 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.789e-06/0.2914, allocations: 6.016 kB / 0.5252 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.224e-06/0.2914, allocations: 2.312 kB / 0.5252 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.91e-07/0.2914, allocations: 3.938 kB / 0.5252 GB, free: 31.5 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002735/0.2917, allocations: 199.4 kB / 0.5254 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.779e-05/0.2918, allocations: 146.7 kB / 0.5255 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.062e-05/0.2918, allocations: 14.78 kB / 0.5255 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.027e-05/0.2919, allocations: 6.328 kB / 0.5255 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.542e-05/0.2919, allocations: 8.328 kB / 0.5255 GB, free: 31.23 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.382e-05/0.292, allocations: 10.41 kB / 0.5255 GB, free: 31.23 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000622/0.2926, allocations: 0.7802 MB / 0.5263 GB, free: 30.96 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2926, allocations: 0 / 0.5263 GB, free: 30.96 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002305/0.2928, allocations: 42.62 kB / 0.5263 GB, free: 30.96 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: 6 ($whenCondition2,startTime.nextTimeEvent,startTime.nextTimeEventScaled,$whenCondition1,startTime_0.nextTimeEvent,startTime_0.nextTimeEventScaled) * Number of discrete states: 4 (startTime_0.nextTimeEventScaled,startTime_0.nextTimeEvent,startTime.nextTimeEventScaled,startTime.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 6 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.001071/0.2939, allocations: 1.05 MB / 0.5274 GB, free: 30.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001949/0.2941, allocations: 81.64 kB / 0.5274 GB, free: 30.15 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.603e-06/0.2941, allocations: 0 / 0.5274 GB, free: 30.15 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.398e-05/0.2942, allocations: 44.72 kB / 0.5275 GB, free: 30.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003862/0.2946, allocations: 68.23 kB / 0.5276 GB, free: 30.11 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003299/0.2979, allocations: 3.026 MB / 0.5305 GB, free: 28.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002297/0.2982, allocations: 0.8428 MB / 0.5313 GB, free: 28.12 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001367/0.2983, allocations: 156.1 kB / 0.5315 GB, free: 28 MB / 378.7 MB Notification: Performance of SimCode: time 3.3e-07/0.2983, allocations: 3.938 kB / 0.5315 GB, free: 28 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.004/3.303, allocations: 7.349 MB / 0.5387 GB, free: 26.88 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test72.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test72.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test72.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test72.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test72_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test72_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test72.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test72.pipe 2>&1)