Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test10.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.Test10,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test10",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test10,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test10",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001046/0.001046, allocations: 198.1 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.229/1.229, allocations: 226.5 MB / 243.4 MB, free: 6.469 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.000761/0.0007613, allocations: 93.2 kB / 295.5 MB, free: 6.672 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2734/0.2734, allocations: 44.82 MB / 392.3 MB, free: 35.69 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002582/0.0002583, allocations: 11.94 kB / 465.4 MB, free: 12.55 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2631/0.2634, allocations: 62.95 MB / 0.516 GB, free: 37.09 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test10): time 0.001633/0.2651, allocations: 1.629 MB / 0.5175 GB, free: 35.9 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001065/0.2661, allocations: 0.9878 MB / 0.5185 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.603e-05/0.2662, allocations: 2.969 kB / 0.5185 GB, free: 35.22 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002385/0.2665, allocations: 43.97 kB / 0.5186 GB, free: 35.2 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001907/0.2667, allocations: 72.84 kB / 0.5186 GB, free: 35.16 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002303/0.2669, allocations: 109.2 kB / 0.5187 GB, free: 35.11 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001463/0.2671, allocations: 128.5 kB / 0.5189 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.137e-05/0.2672, allocations: 33.56 kB / 0.5189 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.136e-05/0.2673, allocations: 46.8 kB / 0.5189 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.204e-05/0.2673, allocations: 44.66 kB / 0.519 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.568e-05/0.2673, allocations: 2.781 kB / 0.519 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.36e-05/0.2674, allocations: 41.47 kB / 0.519 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.673e-05/0.2675, allocations: 20.8 kB / 0.519 GB, free: 34.96 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.62e-05/0.2675, allocations: 68.17 kB / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001295/0.2677, allocations: 111.8 kB / 0.5192 GB, free: 34.87 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.2677, allocations: 0 / 0.5192 GB, free: 34.87 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.2677, allocations: 0 / 0.5192 GB, free: 34.87 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.757e-06/0.2677, allocations: 0 / 0.5192 GB, free: 34.87 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.0004372/0.2681, allocations: 466 kB / 0.5197 GB, free: 34.42 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.23e-05/0.2682, allocations: 8.625 kB / 0.5197 GB, free: 34.42 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.381e-05/0.2682, allocations: 41.02 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.232e-05/0.2683, allocations: 14.41 kB / 0.5197 GB, free: 34.37 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001757/0.2684, allocations: 238.7 kB / 0.5199 GB, free: 34.13 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.204e-05/0.2685, allocations: 6.188 kB / 0.5199 GB, free: 34.13 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.755e-05/0.2685, allocations: 10.69 kB / 0.52 GB, free: 34.12 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001896/0.2687, allocations: 110.3 kB / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.935e-06/0.2687, allocations: 0 / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.2687, allocations: 2.625 kB / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.839e-06/0.2687, allocations: 0 / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001336/0.2689, allocations: 57.95 kB / 0.5201 GB, free: 34.03 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004076/0.2693, allocations: 0.5181 MB / 0.5206 GB, free: 33.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002652/0.2696, allocations: 88.59 kB / 0.5207 GB, free: 33.5 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.514e-05/0.2696, allocations: 40.8 kB / 0.5207 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.678e-05/0.2697, allocations: 3.938 kB / 0.5208 GB, free: 33.48 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001722/0.2698, allocations: 88.11 kB / 0.5208 GB, free: 33.41 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.393e-06/0.2699, allocations: 4 kB / 0.5208 GB, free: 33.41 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003278/0.2702, allocations: 154.2 kB / 0.521 GB, free: 33.34 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.845e-05/0.2702, allocations: 51.41 kB / 0.521 GB, free: 33.28 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001313/0.2704, allocations: 194.4 kB / 0.5212 GB, free: 33.15 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.167e-05/0.2704, allocations: 32.48 kB / 0.5213 GB, free: 33.12 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.541e-05/0.2704, allocations: 120.7 kB / 0.5214 GB, free: 33.01 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.833e-05/0.2705, allocations: 29.41 kB / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.681e-06/0.2705, allocations: 4 kB / 0.5214 GB, free: 32.98 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.185e-05/0.2705, allocations: 324.5 kB / 0.5217 GB, free: 32.66 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.913e-05/0.2706, allocations: 29.16 kB / 0.5217 GB, free: 32.66 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.103e-05/0.2707, allocations: 67.28 kB / 0.5218 GB, free: 32.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001518/0.2708, allocations: 100.1 kB / 0.5219 GB, free: 32.54 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.2709, allocations: 2.844 kB / 0.5219 GB, free: 32.54 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002202/0.2711, allocations: 144.8 kB / 0.522 GB, free: 32.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.002e-05/0.2711, allocations: 6.031 kB / 0.522 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.789e-06/0.2711, allocations: 4 kB / 0.522 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.153e-05/0.2711, allocations: 6.688 kB / 0.5221 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.052e-05/0.2712, allocations: 23.67 kB / 0.5221 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.2712, allocations: 3.938 kB / 0.5221 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.409e-05/0.2713, allocations: 20.69 kB / 0.5221 GB, free: 32.44 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.375e-06/0.2713, allocations: 2.969 kB / 0.5221 GB, free: 32.44 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 6.823e-05/0.2714, allocations: 129 kB / 0.5222 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.932e-05/0.2714, allocations: 16.47 kB / 0.5222 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.465e-05/0.2715, allocations: 19.56 kB / 0.5223 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.166e-06/0.2715, allocations: 6.906 kB / 0.5223 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.086e-06/0.2715, allocations: 0 / 0.5223 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.025e-06/0.2715, allocations: 0 / 0.5223 GB, free: 32.29 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001057/0.2716, allocations: 215.2 kB / 0.5225 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.002e-06/0.2716, allocations: 0 / 0.5225 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.171e-05/0.2717, allocations: 19.06 kB / 0.5225 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.2717, allocations: 96 / 0.5225 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.055e-05/0.2717, allocations: 3.938 kB / 0.5225 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.495e-06/0.2717, allocations: 6.812 kB / 0.5225 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.2717, allocations: 0 / 0.5225 GB, free: 32.07 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003042/0.272, allocations: 189.3 kB / 0.5227 GB, free: 31.95 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.236e-05/0.2721, allocations: 97.8 kB / 0.5228 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.081e-05/0.2721, allocations: 0 / 0.5228 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.268e-05/0.2722, allocations: 15.16 kB / 0.5228 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.491e-05/0.2722, allocations: 10.03 kB / 0.5228 GB, free: 31.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.342e-05/0.2722, allocations: 2.969 kB / 0.5228 GB, free: 31.84 MB / 378.7 MB Notification: Performance of sorting global known variables: time 8.324e-05/0.2723, allocations: 156.3 kB / 0.5229 GB, free: 31.74 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2723, allocations: 0 / 0.5229 GB, free: 31.74 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002026/0.2725, allocations: 30.5 kB / 0.523 GB, free: 31.73 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.001101/0.2736, allocations: 1.014 MB / 0.524 GB, free: 30.98 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0001989/0.2738, allocations: 90.45 kB / 0.5241 GB, free: 30.95 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2739, allocations: 0 / 0.5241 GB, free: 30.95 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 8.179e-05/0.2739, allocations: 34.64 kB / 0.5241 GB, free: 30.95 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002647/0.2742, allocations: 40.34 kB / 0.5241 GB, free: 30.93 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.2752, allocations: 0.8882 MB / 0.525 GB, free: 30.33 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001055/0.2754, allocations: 0.7148 MB / 0.5257 GB, free: 29.63 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.954e-05/0.2754, allocations: 43.41 kB / 0.5257 GB, free: 29.6 MB / 378.7 MB Notification: Performance of SimCode: time 2.31e-07/0.2754, allocations: 0 / 0.5257 GB, free: 29.6 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.977/3.252, allocations: 2.588 MB / 0.5283 GB, free: 29.35 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test10.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test10.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test10.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test10.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test10_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test10_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test10.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test10.pipe 2>&1)