Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test12.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.Test12,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test12",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test12,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test12",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001092/0.001092, allocations: 199.5 kB / 16.1 MB, free: 5.703 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.196/1.196, allocations: 226.5 MB / 243.4 MB, free: 6.508 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007187/0.0007187, allocations: 106.2 kB / 295.5 MB, free: 6.668 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2818/0.2818, allocations: 44.82 MB / 392.3 MB, free: 35.68 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002606/0.0002607, allocations: 8 kB / 465.4 MB, free: 12.54 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3357/0.336, allocations: 62.95 MB / 0.516 GB, free: 37.28 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test12): time 0.002122/0.3382, allocations: 1.622 MB / 0.5175 GB, free: 36.1 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001366/0.3396, allocations: 0.9915 MB / 0.5185 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001366/0.3397, allocations: 0 / 0.5185 GB, free: 35.41 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002982/0.34, allocations: 47.39 kB / 0.5186 GB, free: 35.39 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002639/0.3403, allocations: 77.05 kB / 0.5186 GB, free: 35.35 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002636/0.3406, allocations: 106.6 kB / 0.5187 GB, free: 35.3 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001575/0.3407, allocations: 125.8 kB / 0.5189 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001147/0.3409, allocations: 28.5 kB / 0.5189 GB, free: 35.23 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.822e-05/0.341, allocations: 51.11 kB / 0.5189 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 7.614e-05/0.341, allocations: 47.39 kB / 0.519 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.61e-05/0.3411, allocations: 3.031 kB / 0.519 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 8.869e-05/0.3412, allocations: 33.5 kB / 0.519 GB, free: 35.17 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 4.862e-05/0.3412, allocations: 29.05 kB / 0.519 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 7.794e-05/0.3413, allocations: 73.33 kB / 0.5191 GB, free: 35.09 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001781/0.3415, allocations: 105.7 kB / 0.5192 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.012e-05/0.3415, allocations: 0 / 0.5192 GB, free: 35.06 MB / 378.7 MB Notification: Performance of FrontEnd: time 3.276e-06/0.3415, allocations: 3.938 kB / 0.5192 GB, free: 35.06 MB / 378.7 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.3415, allocations: 0 / 0.5192 GB, free: 35.06 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.0005369/0.3421, allocations: 461.4 kB / 0.5197 GB, free: 34.61 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.035e-05/0.3421, allocations: 12.84 kB / 0.5197 GB, free: 34.61 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.334e-05/0.3422, allocations: 40.86 kB / 0.5197 GB, free: 34.57 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.618e-05/0.3422, allocations: 14.5 kB / 0.5197 GB, free: 34.56 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001939/0.3424, allocations: 243.3 kB / 0.52 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.326e-05/0.3424, allocations: 3.312 kB / 0.52 GB, free: 34.32 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.315e-05/0.3424, allocations: 10.94 kB / 0.52 GB, free: 34.31 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002079/0.3427, allocations: 103.3 kB / 0.5201 GB, free: 34.24 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.847e-06/0.3427, allocations: 6.719 kB / 0.5201 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.217e-05/0.3427, allocations: 4 kB / 0.5201 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.59e-06/0.3427, allocations: 2.875 kB / 0.5201 GB, free: 34.23 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001356/0.3429, allocations: 50.02 kB / 0.5201 GB, free: 34.22 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.3433, allocations: 0.5139 MB / 0.5206 GB, free: 33.73 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003231/0.3437, allocations: 87.67 kB / 0.5207 GB, free: 33.69 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.053e-05/0.3438, allocations: 47.67 kB / 0.5208 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.483e-05/0.3438, allocations: 3 kB / 0.5208 GB, free: 33.66 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001875/0.344, allocations: 88.05 kB / 0.5208 GB, free: 33.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.583e-06/0.344, allocations: 0 / 0.5208 GB, free: 33.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003494/0.3443, allocations: 155 kB / 0.521 GB, free: 33.53 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.729e-05/0.3444, allocations: 51.41 kB / 0.521 GB, free: 33.46 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001524/0.3445, allocations: 197.4 kB / 0.5212 GB, free: 33.34 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.339e-05/0.3446, allocations: 32.48 kB / 0.5213 GB, free: 33.3 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.267e-05/0.3446, allocations: 113.8 kB / 0.5214 GB, free: 33.2 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.19e-05/0.3447, allocations: 34.05 kB / 0.5214 GB, free: 33.17 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.611e-06/0.3447, allocations: 0 / 0.5214 GB, free: 33.17 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.319e-05/0.3447, allocations: 334.7 kB / 0.5217 GB, free: 32.85 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.074e-05/0.3448, allocations: 24.56 kB / 0.5217 GB, free: 32.84 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.832e-05/0.3449, allocations: 70.02 kB / 0.5218 GB, free: 32.79 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001665/0.3451, allocations: 103.8 kB / 0.5219 GB, free: 32.72 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.134e-06/0.3451, allocations: 0 / 0.5219 GB, free: 32.72 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002486/0.3454, allocations: 141.8 kB / 0.522 GB, free: 32.65 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.297e-05/0.3454, allocations: 5.312 kB / 0.522 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.3454, allocations: 2.438 kB / 0.5221 GB, free: 32.65 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.563e-05/0.3454, allocations: 6.344 kB / 0.5221 GB, free: 32.64 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.089e-05/0.3455, allocations: 21.58 kB / 0.5221 GB, free: 32.64 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.788e-06/0.3455, allocations: 6.219 kB / 0.5221 GB, free: 32.64 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.697e-05/0.3456, allocations: 17.31 kB / 0.5221 GB, free: 32.63 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.918e-06/0.3456, allocations: 5.5 kB / 0.5221 GB, free: 32.63 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 8.455e-05/0.3457, allocations: 133.2 kB / 0.5222 GB, free: 32.5 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.931e-05/0.3457, allocations: 14.03 kB / 0.5222 GB, free: 32.5 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.052e-05/0.3458, allocations: 14.56 kB / 0.5223 GB, free: 32.49 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.3458, allocations: 6.906 kB / 0.5223 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.456e-06/0.3458, allocations: 0 / 0.5223 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.937e-06/0.3458, allocations: 3.422 kB / 0.5223 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001294/0.3459, allocations: 210.3 kB / 0.5225 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-06/0.3459, allocations: 0 / 0.5225 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.562e-05/0.346, allocations: 18.81 kB / 0.5225 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.603e-06/0.346, allocations: 0 / 0.5225 GB, free: 32.27 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.377e-05/0.3461, allocations: 10.69 kB / 0.5225 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.354e-06/0.3461, allocations: 3.938 kB / 0.5225 GB, free: 32.26 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.11e-07/0.3461, allocations: 3.938 kB / 0.5225 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003408/0.3464, allocations: 187.4 kB / 0.5227 GB, free: 32.14 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.689e-05/0.3465, allocations: 97.75 kB / 0.5228 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.325e-05/0.3465, allocations: 4 kB / 0.5228 GB, free: 32.04 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.375e-05/0.3466, allocations: 15.94 kB / 0.5228 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.953e-05/0.3466, allocations: 6.359 kB / 0.5228 GB, free: 32.03 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.482e-05/0.3466, allocations: 2.969 kB / 0.5228 GB, free: 32.03 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.966e-05/0.3467, allocations: 151.4 kB / 0.5229 GB, free: 31.93 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3467, allocations: 0 / 0.5229 GB, free: 31.93 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002134/0.347, allocations: 35.86 kB / 0.523 GB, free: 31.92 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.001232/0.3482, allocations: 1.013 MB / 0.524 GB, free: 31.17 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002251/0.3484, allocations: 92.38 kB / 0.5241 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3484, allocations: 0 / 0.5241 GB, free: 31.14 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.298e-05/0.3485, allocations: 33.86 kB / 0.5241 GB, free: 31.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002797/0.3488, allocations: 38.53 kB / 0.5241 GB, free: 31.12 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001211/0.3501, allocations: 0.8914 MB / 0.525 GB, free: 30.52 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001604/0.3502, allocations: 0.7151 MB / 0.5257 GB, free: 29.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.362e-05/0.3503, allocations: 42.31 kB / 0.5257 GB, free: 29.79 MB / 378.7 MB Notification: Performance of SimCode: time 2.4e-07/0.3503, allocations: 0 / 0.5257 GB, free: 29.79 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.041/3.391, allocations: 2.58 MB / 0.5283 GB, free: 29.54 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test12.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test12.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test12.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test12.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test12_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test12_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test12.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test12.pipe 2>&1)