Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test11.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.Test11,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test11",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Tables.CombiTimeTable.Test11,fileNamePrefix="ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test11",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001138/0.001137, allocations: 199 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.198/1.198, 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.0007295/0.0007295, allocations: 98.33 kB / 295.5 MB, free: 6.684 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest trunk/package.mo): time 0.2762/0.2762, allocations: 44.82 MB / 392.3 MB, free: 35.7 MB / 298.7 MB Notification: Performance of FrontEnd - loaded program: time 0.00024/0.00024, allocations: 12.22 kB / 465.4 MB, free: 12.59 MB / 346.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2701/0.2704, allocations: 62.96 MB / 0.516 GB, free: 37.1 MB / 378.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Tables.CombiTimeTable.Test11): time 0.00164/0.2721, allocations: 1.619 MB / 0.5175 GB, free: 35.92 MB / 378.7 MB Notification: Performance of NFInst.instExpressions: time 0.001165/0.2733, allocations: 0.9906 MB / 0.5185 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.73e-05/0.2734, allocations: 2.906 kB / 0.5185 GB, free: 35.24 MB / 378.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002562/0.2736, allocations: 42.05 kB / 0.5186 GB, free: 35.21 MB / 378.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000208/0.2738, allocations: 74.38 kB / 0.5186 GB, free: 35.18 MB / 378.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002667/0.2741, allocations: 110.3 kB / 0.5187 GB, free: 35.12 MB / 378.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001501/0.2743, allocations: 128.6 kB / 0.5189 GB, free: 35.06 MB / 378.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.554e-05/0.2744, allocations: 34.62 kB / 0.5189 GB, free: 35.05 MB / 378.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.189e-05/0.2745, allocations: 44.12 kB / 0.5189 GB, free: 35.03 MB / 378.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.125e-05/0.2745, allocations: 40.41 kB / 0.519 GB, free: 35.01 MB / 378.7 MB Notification: Performance of NFPackage.collectConstants: time 1.637e-05/0.2746, allocations: 6.625 kB / 0.519 GB, free: 35 MB / 378.7 MB Notification: Performance of NFFlatten.collectFunctions: time 7.859e-05/0.2746, allocations: 44.12 kB / 0.519 GB, free: 34.99 MB / 378.7 MB Notification: Performance of NFScalarize.scalarize: time 3.781e-05/0.2747, allocations: 25.03 kB / 0.519 GB, free: 34.98 MB / 378.7 MB Notification: Performance of NFVerifyModel.verify: time 5.66e-05/0.2747, allocations: 72.59 kB / 0.5191 GB, free: 34.91 MB / 378.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001268/0.2749, allocations: 105.5 kB / 0.5192 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.248e-06/0.2749, allocations: 0 / 0.5192 GB, free: 34.88 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2749, allocations: 0 / 0.5192 GB, free: 34.88 MB / 378.7 MB Notification: Performance of Transformations before backend: time 3.977e-06/0.2749, allocations: 0 / 0.5192 GB, free: 34.88 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.0004871/0.2754, allocations: 469.1 kB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.301e-05/0.2755, allocations: 8.656 kB / 0.5197 GB, free: 34.43 MB / 378.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.367e-05/0.2755, allocations: 40.89 kB / 0.5197 GB, free: 34.39 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.481e-05/0.2755, allocations: 14.59 kB / 0.5197 GB, free: 34.38 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001955/0.2757, allocations: 235.5 kB / 0.5199 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.283e-05/0.2758, allocations: 3.344 kB / 0.5199 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.132e-05/0.2758, allocations: 13.88 kB / 0.52 GB, free: 34.14 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000192/0.276, allocations: 107 kB / 0.5201 GB, free: 34.06 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.915e-06/0.276, allocations: 0 / 0.5201 GB, free: 34.06 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.299e-05/0.276, allocations: 6.719 kB / 0.5201 GB, free: 34.06 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.538e-06/0.276, allocations: 0 / 0.5201 GB, free: 34.06 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001286/0.2762, allocations: 51.3 kB / 0.5201 GB, free: 34.05 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004201/0.2766, allocations: 0.5182 MB / 0.5206 GB, free: 33.55 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002723/0.2769, allocations: 92.19 kB / 0.5207 GB, free: 33.51 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.678e-05/0.277, allocations: 40.12 kB / 0.5207 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.153e-05/0.277, allocations: 6.875 kB / 0.5208 GB, free: 33.49 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001776/0.2772, allocations: 80.92 kB / 0.5208 GB, free: 33.43 MB / 378.7 MB Notification: Performance of pre-optimization done (n=9): time 1.372e-06/0.2772, allocations: 0 / 0.5208 GB, free: 33.43 MB / 378.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003243/0.2775, allocations: 156 kB / 0.521 GB, free: 33.36 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.998e-05/0.2776, allocations: 51.41 kB / 0.521 GB, free: 33.29 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001391/0.2777, allocations: 197.9 kB / 0.5212 GB, free: 33.17 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 1.179e-05/0.2777, allocations: 32.64 kB / 0.5213 GB, free: 33.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.187e-05/0.2778, allocations: 113.7 kB / 0.5214 GB, free: 33.03 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.268e-05/0.2778, allocations: 26.31 kB / 0.5214 GB, free: 33.01 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.953e-06/0.2778, allocations: 11.06 kB / 0.5214 GB, free: 33 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 4.86e-05/0.2779, allocations: 325.1 kB / 0.5217 GB, free: 32.68 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.812e-05/0.278, allocations: 32.45 kB / 0.5217 GB, free: 32.67 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.232e-05/0.278, allocations: 67.36 kB / 0.5218 GB, free: 32.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001583/0.2782, allocations: 105.4 kB / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2782, allocations: 0 / 0.5219 GB, free: 32.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=14) (initialization): time 0.0002257/0.2785, allocations: 142.9 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.325e-05/0.2785, allocations: 5.906 kB / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.2785, allocations: 0 / 0.522 GB, free: 32.48 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.69e-05/0.2785, allocations: 10.91 kB / 0.5221 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.392e-05/0.2786, allocations: 23.89 kB / 0.5221 GB, free: 32.47 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.164e-06/0.2786, allocations: 6.875 kB / 0.5221 GB, free: 32.46 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.548e-05/0.2787, allocations: 21.72 kB / 0.5221 GB, free: 32.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.237e-06/0.2787, allocations: 5.812 kB / 0.5221 GB, free: 32.45 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.367e-05/0.2788, allocations: 128.6 kB / 0.5222 GB, free: 32.33 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.962e-05/0.2788, allocations: 15.59 kB / 0.5222 GB, free: 32.32 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.807e-05/0.2789, allocations: 15.67 kB / 0.5223 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.707e-06/0.2789, allocations: 6.969 kB / 0.5223 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.037e-06/0.2789, allocations: 0 / 0.5223 GB, free: 32.31 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.2789, allocations: 3.984 kB / 0.5223 GB, free: 32.3 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001149/0.279, allocations: 210 kB / 0.5225 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.794e-06/0.279, allocations: 6.938 kB / 0.5225 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.117e-05/0.2791, allocations: 12.17 kB / 0.5225 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.2791, allocations: 0 / 0.5225 GB, free: 32.09 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.145e-05/0.2791, allocations: 10.81 kB / 0.5225 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.864e-06/0.2791, allocations: 3.938 kB / 0.5225 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.462e-06/0.2791, allocations: 0 / 0.5225 GB, free: 32.08 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003149/0.2795, allocations: 196.4 kB / 0.5227 GB, free: 31.96 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.4e-05/0.2795, allocations: 90.75 kB / 0.5228 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.197e-05/0.2795, allocations: 6.812 kB / 0.5228 GB, free: 31.86 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.249e-05/0.2796, allocations: 12.72 kB / 0.5228 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.402e-05/0.2796, allocations: 6.125 kB / 0.5228 GB, free: 31.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.686e-05/0.2797, allocations: 2.812 kB / 0.5228 GB, free: 31.85 MB / 378.7 MB Notification: Performance of sorting global known variables: time 9.449e-05/0.2798, allocations: 150.2 kB / 0.5229 GB, free: 31.75 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2798, allocations: 4.062 kB / 0.523 GB, free: 31.75 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002174/0.28, allocations: 32.03 kB / 0.523 GB, free: 31.74 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.001186/0.2812, allocations: 1.011 MB / 0.524 GB, free: 30.99 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0002355/0.2814, allocations: 90.03 kB / 0.5241 GB, free: 30.96 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.2814, allocations: 0 / 0.5241 GB, free: 30.96 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 9.207e-05/0.2815, allocations: 37.61 kB / 0.5241 GB, free: 30.96 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003032/0.2818, allocations: 40.25 kB / 0.5241 GB, free: 30.94 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001228/0.2831, allocations: 0.8871 MB / 0.525 GB, free: 30.34 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001282/0.2832, allocations: 0.7137 MB / 0.5257 GB, free: 29.64 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.498e-05/0.2833, allocations: 39.53 kB / 0.5257 GB, free: 29.62 MB / 378.7 MB Notification: Performance of SimCode: time 8.11e-07/0.2833, allocations: 0 / 0.5257 GB, free: 29.62 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 3.037/3.321, allocations: 2.592 MB / 0.5283 GB, free: 29.36 MB / 378.7 MB (rm -f ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test11.pipe ; mkfifo ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test11.pipe ; head -c 1048576 < ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test11.pipe >> ../files/ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test11.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test11_res.mat --tempDir=temp_ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test11_fmu --startTime=0 --stopTime=2 --timeout=50 --tolerance=1e-06 ModelicaTest_trunk_cpp_ModelicaTest_Tables_CombiTimeTable_Test11.fmu > ModelicaTest_trunk_cpp_ModelicaTest.Tables.CombiTimeTable.Test11.pipe 2>&1)