Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo", uses=false) Using package ModelicaTest with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo) Using package ModelicaServices with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo) Using package Modelica with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo) Using package Complex with version 3.2.2 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo) Running command: translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") translateModel(ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain") [:1:1-1:32:writable] Error: Class GC_set_max_heap_size not found in scope (looking for a function or record). Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.2+maint.om/package.mo): time 0.003264/0.003264, allocations: 187.1 kB / 7.456 MB, free: 2.316 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.2+maint.om/package.mo): time 1.308/1.308, allocations: 194.2 MB / 202.1 MB, free: 8.734 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.2+maint.om/package.mo): time 0.00163/0.00163, allocations: 129.1 kB / 247.1 MB, free: 6.324 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 3.2.2+maint.om/package.mo): time 0.182/0.182, allocations: 39.94 MB / 331.9 MB, free: 4.918 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 6.833e-06/6.873e-06, allocations: 0 / 392.8 MB, free: 75.91 MB / 314.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1033/0.1033, allocations: 54.86 MB / 447.6 MB, free: 21.02 MB / 314.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3177/0.4211, allocations: 80.56 MB / 0.5158 GB, free: 10.01 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002158/0.4213, allocations: 69.41 kB / 0.5159 GB, free: 10.01 MB / 346.7 MB Notification: Performance of FrontEnd: time 0.00624/0.4276, allocations: 2.01 MB / 0.5179 GB, free: 9.867 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.4276, allocations: 2.75 kB / 0.5179 GB, free: 9.867 MB / 346.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004608/0.4281, allocations: 405.6 kB / 0.5182 GB, free: 9.492 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.4281, allocations: 9.625 kB / 0.5183 GB, free: 9.492 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.403e-05/0.4282, allocations: 14.69 kB / 0.5183 GB, free: 9.484 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001856/0.4284, allocations: 206.3 kB / 0.5185 GB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.378e-05/0.4284, allocations: 4.125 kB / 0.5185 GB, free: 9.273 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.303e-05/0.4285, allocations: 12.89 kB / 0.5185 GB, free: 9.27 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001566/0.4286, allocations: 60.73 kB / 0.5185 GB, free: 9.27 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001714/0.4288, allocations: 106.9 kB / 0.5186 GB, free: 9.227 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.394e-05/0.4288, allocations: 11.52 kB / 0.5187 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.436e-05/0.4288, allocations: 0 / 0.5187 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.4288, allocations: 4.125 kB / 0.5187 GB, free: 9.219 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006442/0.4295, allocations: 425.4 kB / 0.5191 GB, free: 8.957 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001273/0.4296, allocations: 74.09 kB / 0.5191 GB, free: 8.941 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.528e-05/0.4297, allocations: 49.95 kB / 0.5192 GB, free: 8.934 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.711e-05/0.4298, allocations: 5.312 kB / 0.5192 GB, free: 8.93 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.951e-05/0.4298, allocations: 33.69 kB / 0.5192 GB, free: 8.891 MB / 346.7 MB Notification: Performance of pre-optimization done (n=13): time 1.503e-06/0.4298, allocations: 0 / 0.5192 GB, free: 8.891 MB / 346.7 MB Notification: Performance of matching and sorting (n=19): time 0.001193/0.431, allocations: 0.7038 MB / 0.5199 GB, free: 8.406 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.188e-05/0.431, allocations: 53.56 kB / 0.52 GB, free: 8.344 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.653e-05/0.4311, allocations: 113 kB / 0.5201 GB, free: 8.254 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 1.131e-05/0.4311, allocations: 25.7 kB / 0.5201 GB, free: 8.223 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.006e-05/0.4312, allocations: 113.8 kB / 0.5202 GB, free: 8.121 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.359e-05/0.4312, allocations: 64.12 kB / 0.5203 GB, free: 8.078 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.473e-06/0.4312, allocations: 0 / 0.5203 GB, free: 8.078 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 6.312e-05/0.4313, allocations: 323.9 kB / 0.5206 GB, free: 7.766 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.398e-05/0.4314, allocations: 34.31 kB / 0.5206 GB, free: 7.762 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 8.484e-05/0.4315, allocations: 68.84 kB / 0.5207 GB, free: 7.73 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.671e-05/0.4316, allocations: 55.11 kB / 0.5207 GB, free: 7.719 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.503e-06/0.4316, allocations: 3.906 kB / 0.5207 GB, free: 7.715 MB / 346.7 MB Notification: Performance of matching and sorting (n=22) (initialization): time 0.0002934/0.4319, allocations: 171.7 kB / 0.5209 GB, free: 7.664 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.2e-05/0.4319, allocations: 5.375 kB / 0.5209 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.859e-06/0.4319, allocations: 1.312 kB / 0.5209 GB, free: 7.664 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001488/0.4321, allocations: 37.11 kB / 0.5209 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000185/0.4322, allocations: 35.86 kB / 0.521 GB, free: 7.656 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001068/0.4333, allocations: 1.479 MB / 0.5224 GB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.486e-05/0.4334, allocations: 4.172 kB / 0.5224 GB, free: 6.359 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.496e-05/0.4334, allocations: 9.594 kB / 0.5224 GB, free: 6.359 MB / 346.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: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 16 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 5} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.254e-05/0.4335, allocations: 110.1 kB / 0.5225 GB, free: 6.246 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.62e-05/0.4335, allocations: 9.609 kB / 0.5225 GB, free: 6.242 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.18e-05/0.4336, allocations: 18.86 kB / 0.5225 GB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.4336, allocations: 3.344 kB / 0.5226 GB, free: 6.23 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.372e-06/0.4336, allocations: 4 kB / 0.5226 GB, free: 6.227 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.32e-06/0.4336, allocations: 6.641 kB / 0.5226 GB, free: 6.223 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006103/0.4342, allocations: 499.9 kB / 0.523 GB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.4342, allocations: 0 / 0.523 GB, free: 5.93 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001858/0.4344, allocations: 43.41 kB / 0.5231 GB, free: 5.922 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001011/0.4345, allocations: 35.16 kB / 0.5231 GB, free: 5.91 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.305e-05/0.4346, allocations: 5.25 kB / 0.5231 GB, free: 5.906 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007397/0.4353, allocations: 1.299 MB / 0.5244 GB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.424e-06/0.4353, allocations: 0 / 0.5244 GB, free: 4.684 MB / 346.7 MB Notification: Performance of postOpt detectJacobianSparsePattern (simulation): time 0.0003646/0.4357, allocations: 331.9 kB / 0.5247 GB, free: 4.484 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.724e-05/0.4357, allocations: 84.92 kB / 0.5248 GB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.91e-05/0.4358, allocations: 1.375 kB / 0.5248 GB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.945e-05/0.4359, allocations: 2.625 kB / 0.5248 GB, free: 4.387 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.836e-05/0.4359, allocations: 9.047 kB / 0.5248 GB, free: 4.383 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.249e-05/0.4359, allocations: 14.73 kB / 0.5248 GB, free: 4.375 MB / 346.7 MB Notification: Performance of sort global known variables: time 3.55e-05/0.436, allocations: 91.31 kB / 0.5249 GB, free: 4.301 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0003191/0.4363, allocations: 33 kB / 0.5249 GB, free: 4.301 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 2 (J1.phi,J1.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (16): * Single equations (assignments): 15 * 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: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 3} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001165/0.4364, allocations: 95.75 kB / 0.525 GB, free: 4.211 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0003639/0.4368, allocations: 220.3 kB / 0.5252 GB, free: 4.094 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.824e-06/0.4368, allocations: 0 / 0.5252 GB, free: 4.094 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002025/0.437, allocations: 171.2 kB / 0.5254 GB, free: 3.984 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002263/0.4372, allocations: 18.22 kB / 0.5254 GB, free: 3.973 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005845/0.4378, allocations: 320.5 kB / 0.5257 GB, free: 3.738 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001857/0.438, allocations: 0.7378 MB / 0.5264 GB, free: 3.016 MB / 346.7 MB Notification: Performance of SimCode: time 2.6e-07/0.438, allocations: 0 / 0.5264 GB, free: 3.016 MB / 346.7 MB Notification: Performance of Templates: time 0.003915/0.442, allocations: 1.578 MB / 0.528 GB, free: 2.262 MB / 346.7 MB make -j1 -f ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.makefile (rm -f ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; mkfifo ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe ; head -c 1048576 < ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe >> ../files/ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.sim & ./ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain -abortSlowSimulation -alarm=480 -lv LOG_STATS > ModelicaTest_3.2.2_ModelicaTest.Rotational.ForUsersGuide.SimpleDriveTrain.pipe 2>&1)