Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test68.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.Test68,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test68",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test68,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test68",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001113/0.001113, allocations: 200.3 kB / 16.1 MB, free: 5.578 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.276/1.276, allocations: 226.5 MB / 243.4 MB, free: 8.094 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007402/0.0007403, allocations: 92.05 kB / 295.5 MB, free: 6.855 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2926/0.2926, allocations: 44.82 MB / 392.3 MB, free: 35.67 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000273/0.0002731, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3008/0.3011, allocations: 62.96 MB / 0.516 GB, free: 36.95 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test68): time 0.001694/0.3029, allocations: 1.516 MB / 0.5174 GB, free: 35.84 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001284/0.3042, allocations: 1.044 MB / 0.5185 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.554e-05/0.3043, allocations: 0 / 0.5185 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004009/0.3047, allocations: 299.9 kB / 0.5187 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000311/0.305, allocations: 218.8 kB / 0.519 GB, free: 35.02 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003522/0.3054, allocations: 152.5 kB / 0.5191 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002271/0.3056, allocations: 221.5 kB / 0.5193 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 5.81e-05/0.3057, allocations: 8.922 kB / 0.5193 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000128/0.3058, allocations: 119.1 kB / 0.5194 GB, free: 34.83 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001515/0.3059, allocations: 163.2 kB / 0.5196 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 2.148e-05/0.306, allocations: 3.938 kB / 0.5196 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.925e-05/0.3061, allocations: 38.48 kB / 0.5196 GB, free: 34.79 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001045/0.3062, allocations: 138.2 kB / 0.5198 GB, free: 34.74 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001073/0.3063, allocations: 156.5 kB / 0.5199 GB, free: 34.62 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002286/0.3065, allocations: 274.7 kB / 0.5202 GB, free: 34.55 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.3065, allocations: 0 / 0.5202 GB, free: 34.55 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.3066, allocations: 4 kB / 0.5202 GB, free: 34.55 MB / 378.7 MB Notification: Performance of Transformations before backend: time 5.109e-06/0.3066, allocations: 0 / 0.5202 GB, free: 34.55 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.0006772/0.3072, allocations: 0.67 MB / 0.5208 GB, free: 33.98 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.276e-05/0.3073, allocations: 12.05 kB / 0.5208 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.618e-05/0.3073, allocations: 38.69 kB / 0.5209 GB, free: 33.93 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.084e-05/0.3074, allocations: 54.31 kB / 0.5209 GB, free: 33.9 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004221/0.3078, allocations: 442.2 kB / 0.5214 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.414e-05/0.3079, allocations: 3.188 kB / 0.5214 GB, free: 33.59 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.593e-05/0.3079, allocations: 10.91 kB / 0.5214 GB, free: 33.58 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001732/0.3081, allocations: 78.39 kB / 0.5214 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.787e-06/0.3081, allocations: 6.906 kB / 0.5214 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.176e-05/0.3081, allocations: 0 / 0.5214 GB, free: 33.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.35e-06/0.3081, allocations: 3.984 kB / 0.5215 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.686e-05/0.3082, allocations: 36.11 kB / 0.5215 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003146/0.3085, allocations: 379.1 kB / 0.5218 GB, free: 33.24 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002314/0.3088, allocations: 111.8 kB / 0.522 GB, free: 33.16 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 7.772e-05/0.3089, allocations: 35.73 kB / 0.522 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.858e-05/0.3089, allocations: 6.969 kB / 0.522 GB, free: 33.14 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002184/0.3091, allocations: 105.7 kB / 0.5221 GB, free: 33.05 MB / 378.7 MB Notification: Performance of pre-optimization done (n=10): time 1.473e-06/0.3091, allocations: 3.938 kB / 0.5221 GB, free: 33.05 MB / 378.7 MB Notification: Performance of matching and sorting (n=10): time 0.0004451/0.3096, allocations: 197.4 kB / 0.5223 GB, free: 32.96 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.702e-05/0.3096, allocations: 81.11 kB / 0.5224 GB, free: 32.86 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008789/0.3105, allocations: 1.03 MB / 0.5234 GB, free: 32.51 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.3105, allocations: 25.7 kB / 0.5234 GB, free: 32.48 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001189/0.3106, allocations: 238.2 kB / 0.5236 GB, free: 32.29 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.714e-05/0.3107, allocations: 25.52 kB / 0.5236 GB, free: 32.27 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.623e-06/0.3107, allocations: 4 kB / 0.5237 GB, free: 32.27 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 8.273e-05/0.3108, allocations: 365.2 kB / 0.524 GB, free: 31.94 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.208e-05/0.3109, allocations: 29.31 kB / 0.524 GB, free: 31.93 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.634e-05/0.3109, allocations: 60.06 kB / 0.5241 GB, free: 31.88 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001424/0.3111, allocations: 84.16 kB / 0.5242 GB, free: 31.82 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.166e-06/0.3111, allocations: 3.938 kB / 0.5242 GB, free: 31.82 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002403/0.3114, allocations: 169.7 kB / 0.5243 GB, free: 31.73 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.693e-05/0.3114, allocations: 8.406 kB / 0.5243 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.029e-06/0.3114, allocations: 128 / 0.5243 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.532e-05/0.3114, allocations: 6.688 kB / 0.5243 GB, free: 31.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001072/0.3115, allocations: 29.58 kB / 0.5244 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.641e-06/0.3115, allocations: 0 / 0.5244 GB, free: 31.72 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.135e-05/0.3116, allocations: 13.59 kB / 0.5244 GB, free: 31.71 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.868e-06/0.3116, allocations: 2.469 kB / 0.5244 GB, free: 31.71 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.0001578/0.3118, allocations: 227.9 kB / 0.5246 GB, free: 31.57 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.399e-05/0.3119, allocations: 55.09 kB / 0.5247 GB, free: 31.54 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.567e-05/0.3119, allocations: 56.05 kB / 0.5247 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.916e-06/0.3119, allocations: 2.812 kB / 0.5247 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.668e-06/0.312, allocations: 0 / 0.5247 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.312, allocations: 3.375 kB / 0.5247 GB, free: 31.52 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002098/0.3122, allocations: 340.4 kB / 0.525 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.944e-06/0.3122, allocations: 5.859 kB / 0.525 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.176e-05/0.3122, allocations: 5.375 kB / 0.5251 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.123e-06/0.3122, allocations: 2.594 kB / 0.5251 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.01e-05/0.3122, allocations: 0 / 0.5251 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.034e-06/0.3122, allocations: 6.438 kB / 0.5251 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.3123, allocations: 0 / 0.5251 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002588/0.3125, allocations: 208.6 kB / 0.5253 GB, free: 31.13 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.727e-05/0.3126, allocations: 143.6 kB / 0.5254 GB, free: 31 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.146e-05/0.3127, allocations: 11.22 kB / 0.5254 GB, free: 31 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.104e-05/0.3128, allocations: 9.844 kB / 0.5254 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.524e-05/0.3128, allocations: 6.359 kB / 0.5254 GB, free: 30.99 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.933e-05/0.3128, allocations: 12.8 kB / 0.5254 GB, free: 30.99 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0005858/0.3134, allocations: 0.7605 MB / 0.5262 GB, free: 30.72 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3134, allocations: 0 / 0.5262 GB, free: 30.72 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002379/0.3137, allocations: 42.61 kB / 0.5262 GB, free: 30.72 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.001119/0.3148, allocations: 1.05 MB / 0.5272 GB, free: 29.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002109/0.315, allocations: 78.81 kB / 0.5273 GB, free: 29.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.823e-06/0.315, allocations: 0 / 0.5273 GB, free: 29.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.802e-05/0.3151, allocations: 37.97 kB / 0.5274 GB, free: 29.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004164/0.3156, allocations: 70.41 kB / 0.5274 GB, free: 29.87 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003252/0.3188, allocations: 2.95 MB / 0.5303 GB, free: 28.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002634/0.3191, allocations: 0.8473 MB / 0.5311 GB, free: 27.9 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001546/0.3193, allocations: 149.4 kB / 0.5313 GB, free: 27.79 MB / 378.7 MB Notification: Performance of SimCode: time 7.91e-07/0.3193, allocations: 0 / 0.5313 GB, free: 27.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.925/3.244, allocations: 7.161 MB / 0.5383 GB, free: 26.72 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test68.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test68.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test68.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test68.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test68_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test68_fmu --startTime=0 --stopTime=8000 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test68.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test68.pipe 2>&1)