Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test13.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.Test13,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test13",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test13,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test13",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009475/0.0009477, allocations: 195.4 kB / 16.1 MB, free: 5.527 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.24/1.24, allocations: 226.5 MB / 243.4 MB, free: 8.191 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009912/0.0009912, allocations: 97.42 kB / 295.5 MB, free: 6.891 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.3023/0.3023, allocations: 44.82 MB / 392.3 MB, free: 35.72 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002793/0.0002794, allocations: 8 kB / 465.4 MB, free: 12.57 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3006/0.3009, allocations: 62.97 MB / 0.516 GB, free: 37.03 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test13): time 0.001847/0.3028, allocations: 1.613 MB / 0.5175 GB, free: 35.86 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001128/0.3039, allocations: 0.9956 MB / 0.5185 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.426e-05/0.304, allocations: 0 / 0.5185 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002488/0.3043, allocations: 41.33 kB / 0.5186 GB, free: 35.15 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001983/0.3045, allocations: 75.45 kB / 0.5186 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002513/0.3047, allocations: 108.5 kB / 0.5187 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.00015/0.3049, allocations: 128.4 kB / 0.5189 GB, free: 35 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001337/0.305, allocations: 25.02 kB / 0.5189 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.932e-05/0.3051, allocations: 51.89 kB / 0.5189 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.594e-05/0.3052, allocations: 43.84 kB / 0.519 GB, free: 34.95 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.462e-05/0.3052, allocations: 6.719 kB / 0.519 GB, free: 34.94 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.826e-05/0.3053, allocations: 37.7 kB / 0.519 GB, free: 34.93 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.166e-05/0.3053, allocations: 25.17 kB / 0.519 GB, free: 34.92 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.946e-05/0.3054, allocations: 67.64 kB / 0.5191 GB, free: 34.86 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001385/0.3056, allocations: 110.2 kB / 0.5192 GB, free: 34.82 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.3056, allocations: 0 / 0.5192 GB, free: 34.82 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.723e-06/0.3056, allocations: 0 / 0.5192 GB, free: 34.82 MB / 378.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.3056, allocations: 0 / 0.5192 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0004943/0.3061, allocations: 467.2 kB / 0.5196 GB, free: 34.37 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.669e-05/0.3061, allocations: 11.75 kB / 0.5197 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.103e-05/0.3062, allocations: 40.95 kB / 0.5197 GB, free: 34.33 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.224e-05/0.3062, allocations: 18.62 kB / 0.5197 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001852/0.3064, allocations: 230.9 kB / 0.5199 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.295e-05/0.3064, allocations: 7.25 kB / 0.5199 GB, free: 34.08 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.104e-05/0.3064, allocations: 12.73 kB / 0.52 GB, free: 34.07 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002011/0.3066, allocations: 110.9 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.105e-06/0.3067, allocations: 0 / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.221e-05/0.3067, allocations: 3.094 kB / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.629e-06/0.3067, allocations: 0 / 0.5201 GB, free: 34 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001368/0.3068, allocations: 57.28 kB / 0.5201 GB, free: 33.98 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004224/0.3073, allocations: 0.5152 MB / 0.5206 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002712/0.3075, allocations: 91.67 kB / 0.5207 GB, free: 33.45 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.836e-05/0.3076, allocations: 37.08 kB / 0.5207 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.345e-05/0.3077, allocations: 6.875 kB / 0.5208 GB, free: 33.43 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001775/0.3079, allocations: 92.36 kB / 0.5208 GB, free: 33.36 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.412e-06/0.3079, allocations: 0 / 0.5208 GB, free: 33.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003354/0.3082, allocations: 156.5 kB / 0.521 GB, free: 33.29 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.031e-05/0.3082, allocations: 51.41 kB / 0.521 GB, free: 33.22 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001402/0.3084, allocations: 191.4 kB / 0.5212 GB, free: 33.1 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.159e-05/0.3084, allocations: 29.7 kB / 0.5212 GB, free: 33.07 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.876e-05/0.3085, allocations: 124.1 kB / 0.5214 GB, free: 32.96 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.85e-05/0.3085, allocations: 23.59 kB / 0.5214 GB, free: 32.94 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.1e-06/0.3085, allocations: 4 kB / 0.5214 GB, free: 32.93 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.555e-05/0.3086, allocations: 328.9 kB / 0.5217 GB, free: 32.61 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.917e-05/0.3086, allocations: 30.91 kB / 0.5217 GB, free: 32.61 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.108e-05/0.3087, allocations: 59.27 kB / 0.5218 GB, free: 32.56 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001563/0.3089, allocations: 111.9 kB / 0.5219 GB, free: 32.48 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.815e-06/0.3089, allocations: 3.234 kB / 0.5219 GB, free: 32.48 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002361/0.3092, allocations: 139.3 kB / 0.522 GB, free: 32.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.133e-05/0.3092, allocations: 5.562 kB / 0.522 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.588e-06/0.3092, allocations: 0 / 0.522 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.336e-05/0.3092, allocations: 6.312 kB / 0.522 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.18e-05/0.3093, allocations: 24.36 kB / 0.5221 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.841e-06/0.3093, allocations: 0 / 0.5221 GB, free: 32.41 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.653e-05/0.3094, allocations: 25.31 kB / 0.5221 GB, free: 32.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.057e-05/0.3094, allocations: 9.844 kB / 0.5221 GB, free: 32.39 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 6 ($whenCondition1,$PRE.t_new.nextTimeEvent,t_new.nextTimeEvent,$PRE.t_new.nextTimeEventScaled,t_new.nextTimeEventScaled,err1.local_reset) * 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 7.455e-05/0.3095, allocations: 129.8 kB / 0.5222 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.869e-05/0.3095, allocations: 13.78 kB / 0.5222 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.69e-05/0.3095, allocations: 18.88 kB / 0.5223 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.015e-06/0.3096, allocations: 3.938 kB / 0.5223 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.436e-06/0.3096, allocations: 0 / 0.5223 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.956e-06/0.3096, allocations: 0 / 0.5223 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001168/0.3097, allocations: 213.6 kB / 0.5225 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3097, allocations: 0 / 0.5225 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.119e-05/0.3098, allocations: 23.08 kB / 0.5225 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3098, allocations: 0 / 0.5225 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.768e-06/0.3098, allocations: 0 / 0.5225 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.3098, allocations: 3.938 kB / 0.5225 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.844e-06/0.3098, allocations: 6.875 kB / 0.5225 GB, free: 32.02 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003163/0.3101, allocations: 193.7 kB / 0.5227 GB, free: 31.9 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.181e-05/0.3102, allocations: 87.77 kB / 0.5228 GB, free: 31.8 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.348e-05/0.3102, allocations: 10.69 kB / 0.5228 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.513e-05/0.3103, allocations: 13.02 kB / 0.5228 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.656e-05/0.3103, allocations: 6.188 kB / 0.5228 GB, free: 31.79 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.391e-05/0.3103, allocations: 6.781 kB / 0.5228 GB, free: 31.79 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.638e-05/0.3104, allocations: 151.4 kB / 0.5229 GB, free: 31.69 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.3104, allocations: 4.062 kB / 0.523 GB, free: 31.69 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002104/0.3107, allocations: 27.81 kB / 0.523 GB, free: 31.68 MB / 378.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 1 (err1.y) * Number of discrete variables: 3 ($whenCondition1,t_new.nextTimeEvent,t_new.nextTimeEventScaled) * Number of discrete states: 2 (t_new.nextTimeEventScaled,t_new.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * 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.001113/0.3118, allocations: 1.013 MB / 0.524 GB, free: 30.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002114/0.312, allocations: 88.44 kB / 0.5241 GB, free: 30.91 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.535e-06/0.312, allocations: 0 / 0.5241 GB, free: 30.91 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.753e-05/0.3121, allocations: 34.88 kB / 0.5241 GB, free: 30.9 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002744/0.3124, allocations: 37.12 kB / 0.5241 GB, free: 30.89 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001128/0.3135, allocations: 0.8972 MB / 0.525 GB, free: 30.28 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001204/0.3137, allocations: 0.7122 MB / 0.5257 GB, free: 29.59 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.265e-05/0.3137, allocations: 43.48 kB / 0.5257 GB, free: 29.55 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.3137, allocations: 0 / 0.5257 GB, free: 29.55 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.014/3.327, allocations: 2.586 MB / 0.5283 GB, free: 29.3 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test13.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test13.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test13.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test13.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test13_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test13_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test13.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test13.pipe 2>&1)