Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test70.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.Test70,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test70",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test70,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test70",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001446/0.001445, allocations: 200.4 kB / 16.1 MB, free: 5.574 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.322/1.322, allocations: 226.5 MB / 243.4 MB, free: 6.387 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008218/0.000822, allocations: 96.73 kB / 295.5 MB, free: 6.664 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3093/0.3093, allocations: 44.81 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002421/0.0002423, allocations: 8 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2786/0.2789, allocations: 62.97 MB / 0.516 GB, free: 37.22 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test70): time 0.001794/0.2807, allocations: 1.511 MB / 0.5175 GB, free: 36.12 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001306/0.2821, allocations: 1.043 MB / 0.5185 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.579e-05/0.2822, allocations: 0 / 0.5185 GB, free: 35.4 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004153/0.2826, allocations: 298.6 kB / 0.5188 GB, free: 35.37 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0003489/0.283, allocations: 232.1 kB / 0.519 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003259/0.2833, allocations: 144.6 kB / 0.5191 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002144/0.2835, allocations: 218.9 kB / 0.5193 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.788e-05/0.2836, allocations: 22.38 kB / 0.5193 GB, free: 35.14 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001232/0.2837, allocations: 120 kB / 0.5195 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001526/0.2839, allocations: 161.2 kB / 0.5196 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.151e-05/0.2839, allocations: 2.969 kB / 0.5196 GB, free: 35.07 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 9.209e-05/0.284, allocations: 40.7 kB / 0.5197 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001053/0.2841, allocations: 140 kB / 0.5198 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001043/0.2842, allocations: 162.6 kB / 0.5199 GB, free: 34.89 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000217/0.2844, allocations: 275.9 kB / 0.5202 GB, free: 34.83 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.2845, allocations: 7.281 kB / 0.5202 GB, free: 34.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.2845, allocations: 0 / 0.5202 GB, free: 34.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.981e-06/0.2845, allocations: 4 kB / 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.0006565/0.2851, allocations: 0.6761 MB / 0.5209 GB, free: 34.25 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.521e-05/0.2852, allocations: 8.844 kB / 0.5209 GB, free: 34.25 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.985e-05/0.2852, allocations: 33.53 kB / 0.5209 GB, free: 34.21 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.373e-05/0.2853, allocations: 51.25 kB / 0.521 GB, free: 34.18 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003972/0.2857, allocations: 455.9 kB / 0.5214 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.356e-05/0.2857, allocations: 384 / 0.5214 GB, free: 33.86 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.2857, allocations: 14.3 kB / 0.5214 GB, free: 33.85 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001638/0.2859, allocations: 86.05 kB / 0.5215 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.656e-06/0.2859, allocations: 0 / 0.5215 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.044e-05/0.2859, allocations: 0 / 0.5215 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.849e-06/0.2859, allocations: 2.875 kB / 0.5215 GB, free: 33.79 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.785e-05/0.286, allocations: 29.44 kB / 0.5215 GB, free: 33.78 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002779/0.2863, allocations: 375.8 kB / 0.5219 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002218/0.2865, allocations: 113.9 kB / 0.522 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.737e-05/0.2866, allocations: 38.33 kB / 0.522 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.503e-05/0.2866, allocations: 0 / 0.522 GB, free: 33.42 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002282/0.2869, allocations: 123.3 kB / 0.5221 GB, free: 33.33 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.563e-06/0.2869, allocations: 3.938 kB / 0.5222 GB, free: 33.32 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004046/0.2873, allocations: 189.7 kB / 0.5223 GB, free: 33.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.889e-05/0.2873, allocations: 81.11 kB / 0.5224 GB, free: 33.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008178/0.2882, allocations: 1.061 MB / 0.5234 GB, free: 32.78 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.2882, allocations: 25.7 kB / 0.5235 GB, free: 32.75 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.2883, allocations: 239.1 kB / 0.5237 GB, free: 32.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.493e-05/0.2884, allocations: 32.64 kB / 0.5237 GB, free: 32.54 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.32e-06/0.2884, allocations: 0 / 0.5237 GB, free: 32.54 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 7.594e-05/0.2884, allocations: 372.1 kB / 0.5241 GB, free: 32.2 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.186e-05/0.2885, allocations: 23.94 kB / 0.5241 GB, free: 32.19 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.441e-05/0.2886, allocations: 69.84 kB / 0.5242 GB, free: 32.14 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001359/0.2887, allocations: 79.14 kB / 0.5243 GB, free: 32.09 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.2888, allocations: 6.844 kB / 0.5243 GB, free: 32.08 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002318/0.289, allocations: 174.4 kB / 0.5244 GB, free: 31.98 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.223e-05/0.289, allocations: 9.844 kB / 0.5244 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.289, allocations: 0 / 0.5244 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.207e-05/0.289, allocations: 2.531 kB / 0.5244 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001032/0.2892, allocations: 21.92 kB / 0.5245 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.665e-06/0.2892, allocations: 0 / 0.5245 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.173e-05/0.2893, allocations: 13.33 kB / 0.5245 GB, free: 31.98 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.05e-05/0.2893, allocations: 7.719 kB / 0.5245 GB, free: 31.97 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.0001497/0.2894, allocations: 225.9 kB / 0.5247 GB, free: 31.83 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.596e-05/0.2895, allocations: 58.83 kB / 0.5247 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.904e-05/0.2896, allocations: 62.45 kB / 0.5248 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.2896, allocations: 0 / 0.5248 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.708e-06/0.2896, allocations: 0 / 0.5248 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.367e-06/0.2896, allocations: 6.234 kB / 0.5248 GB, free: 31.77 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002048/0.2898, allocations: 343 kB / 0.5251 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.041e-06/0.2898, allocations: 0 / 0.5251 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.289e-05/0.2898, allocations: 11.17 kB / 0.5252 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.513e-06/0.2898, allocations: 0 / 0.5252 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.158e-05/0.2899, allocations: 6.719 kB / 0.5252 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.245e-06/0.2899, allocations: 0 / 0.5252 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.482e-06/0.2899, allocations: 10.53 kB / 0.5252 GB, free: 31.51 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002516/0.2901, allocations: 201.8 kB / 0.5254 GB, free: 31.38 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.776e-05/0.2902, allocations: 150.7 kB / 0.5255 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.048e-05/0.2903, allocations: 7.266 kB / 0.5255 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 7.99e-05/0.2904, allocations: 5.625 kB / 0.5255 GB, free: 31.25 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.173e-05/0.2904, allocations: 13.52 kB / 0.5255 GB, free: 31.24 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.622e-05/0.2904, allocations: 9.047 kB / 0.5255 GB, free: 31.24 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0006178/0.2911, allocations: 0.78 MB / 0.5263 GB, free: 30.97 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.7e-07/0.2911, allocations: 0 / 0.5263 GB, free: 30.97 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.000238/0.2913, allocations: 42.41 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.001102/0.2924, allocations: 1.05 MB / 0.5274 GB, free: 30.18 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002/0.2926, allocations: 76.39 kB / 0.5274 GB, free: 30.16 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2926, allocations: 0 / 0.5274 GB, free: 30.16 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.827e-05/0.2927, allocations: 42.55 kB / 0.5275 GB, free: 30.15 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004502/0.2932, allocations: 66 kB / 0.5275 GB, free: 30.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003199/0.2964, allocations: 3.031 MB / 0.5305 GB, free: 28.85 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002301/0.2967, allocations: 0.849 MB / 0.5313 GB, free: 28.13 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001556/0.2968, allocations: 149.5 kB / 0.5315 GB, free: 28.02 MB / 378.7 MB Notification: Performance of SimCode: time 3.9e-07/0.2968, allocations: 3.938 kB / 0.5315 GB, free: 28.02 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3/3.297, allocations: 7.346 MB / 0.5387 GB, free: 26.9 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test70.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test70.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test70.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test70.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test70_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test70_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test70.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test70.pipe 2>&1)