Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr HanserModelica_HanserModelica.Rotational.Drive.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package HanserModelica with version 2.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(HanserModelica.Rotational.Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.Drive") translateModel(HanserModelica.Rotational.Drive,tolerance=1e-06,outputFormat="empty",numberOfIntervals=20000,variableFilter="",fileNamePrefix="HanserModelica_HanserModelica.Rotational.Drive") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009239/0.0009241, allocations: 170.3 kB / 7.645 MB, free: 1.434 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/HanserModelica 2.0.0-master/package.mo): time 0.03896/0.03896, allocations: 8.718 MB / 16.79 MB, free: 3.391 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.708/1.708, allocations: 221.5 MB / 240.9 MB, free: 13.18 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001073/0.001073, allocations: 90.42 kB / 293.9 MB, free: 7.23 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.781e-05/1.776e-05, allocations: 0 / 352.6 MB, free: 1.273 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1352, allocations: 52.54 MB / 405.2 MB, free: 12.68 MB / 346.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3177/0.453, allocations: 81.46 MB / 486.6 MB, free: 5.902 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002312/0.4533, allocations: 74.16 kB / 486.7 MB, free: 5.867 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01211/0.4654, allocations: 5.058 MB / 491.8 MB, free: 1.551 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.342e-06/0.4654, allocations: 0 / 491.8 MB, free: 1.551 MB / 346.7 MB Notification: Performance of Transformations before backend: time 1.901e-05/0.4654, allocations: 4 kB / 491.8 MB, free: 1.547 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: 28 * Number of variables: 28 Notification: Performance of Generate backend data structure: time 0.0005234/0.466, allocations: 462.7 kB / 492.2 MB, free: 1.055 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.759e-05/0.466, allocations: 11.98 kB / 492.2 MB, free: 1.043 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.199e-05/0.4661, allocations: 23.72 kB / 492.3 MB, free: 1.02 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003263/0.4664, allocations: 250.9 kB / 492.5 MB, free: 0.7383 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.139e-05/0.4665, allocations: 8 kB / 492.5 MB, free: 0.7305 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.07e-05/0.4665, allocations: 8 kB / 492.5 MB, free: 0.7227 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.000147/0.4667, allocations: 64.41 kB / 492.6 MB, free: 0.6602 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001767/0.4668, allocations: 125.2 kB / 492.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.574e-05/0.4669, allocations: 0 / 492.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.569e-05/0.4669, allocations: 0 / 492.7 MB, free: 0.5273 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.4669, allocations: 5.25 kB / 492.7 MB, free: 0.5234 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007594/0.4677, allocations: 0.5895 MB / 493.3 MB, free: 15.88 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.4678, allocations: 90.62 kB / 493.4 MB, free: 15.79 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.579e-05/0.4679, allocations: 32.86 kB / 493.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.725e-05/0.4679, allocations: 0 / 493.4 MB, free: 15.75 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001575/0.4681, allocations: 80.19 kB / 493.5 MB, free: 15.66 MB / 362.7 MB Notification: Performance of pre-optimization done (n=10): time 1.313e-06/0.4681, allocations: 7.875 kB / 493.5 MB, free: 15.65 MB / 362.7 MB Notification: Performance of matching and sorting (n=10): time 0.0002684/0.4684, allocations: 119.1 kB / 493.6 MB, free: 15.53 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.4684, allocations: 51.41 kB / 493.7 MB, free: 15.47 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002465/0.4687, allocations: 235 kB / 493.9 MB, free: 15.23 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.874e-05/0.4687, allocations: 29.7 kB / 493.9 MB, free: 15.2 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.19e-05/0.4688, allocations: 144 kB / 494.1 MB, free: 15.05 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.134e-05/0.4688, allocations: 35.55 kB / 494.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.121e-06/0.4688, allocations: 0 / 494.1 MB, free: 15.01 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001212/0.469, allocations: 326.8 kB / 494.4 MB, free: 14.68 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.436e-05/0.469, allocations: 31.92 kB / 494.5 MB, free: 14.65 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.859e-05/0.4691, allocations: 57 kB / 494.5 MB, free: 14.58 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 6.437e-05/0.4692, allocations: 35.98 kB / 494.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.043e-06/0.4692, allocations: 0 / 494.5 MB, free: 14.55 MB / 362.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0001987/0.4694, allocations: 134 kB / 494.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.509e-05/0.4694, allocations: 6.031 kB / 494.7 MB, free: 14.41 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.113e-06/0.4694, allocations: 4 kB / 494.7 MB, free: 14.4 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.37e-05/0.4695, allocations: 8.078 kB / 494.7 MB, free: 14.39 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001454/0.4696, allocations: 31.92 kB / 494.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.719e-06/0.4696, allocations: 0 / 494.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.189e-05/0.4697, allocations: 12.16 kB / 494.7 MB, free: 14.36 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.094e-05/0.4698, allocations: 8.656 kB / 494.7 MB, free: 14.35 MB / 362.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: 5 ($whenCondition1,$PRE.combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEvent,$PRE.combiTimeTable.nextTimeEventScaled,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (16): * 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: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 7.493e-05/0.4698, allocations: 112.9 kB / 494.9 MB, free: 14.23 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.097e-05/0.4699, allocations: 19.8 kB / 494.9 MB, free: 14.21 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002343/0.4701, allocations: 127.7 kB / 495 MB, free: 14.09 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.964e-06/0.4701, allocations: 4 kB / 495 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.4701, allocations: 3.953 kB / 495 MB, free: 14.08 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.4701, allocations: 3.984 kB / 495 MB, free: 14.07 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001994/0.4703, allocations: 219.9 kB / 495.2 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.625e-06/0.4704, allocations: 4.812 kB / 495.2 MB, free: 13.82 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001192/0.4705, allocations: 16 kB / 495.2 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.498e-06/0.4705, allocations: 7.922 kB / 495.3 MB, free: 13.8 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.307e-05/0.4705, allocations: 4 kB / 495.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.673e-06/0.4705, allocations: 4 kB / 495.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.033e-06/0.4705, allocations: 0 / 495.3 MB, free: 13.79 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002781/0.4708, allocations: 187.6 kB / 495.4 MB, free: 13.59 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.009e-05/0.4709, allocations: 100.8 kB / 495.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.077e-05/0.4709, allocations: 0 / 495.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.736e-05/0.471, allocations: 4 kB / 495.5 MB, free: 13.47 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.691e-05/0.4711, allocations: 11.98 kB / 495.6 MB, free: 13.46 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.309e-05/0.4711, allocations: 4 kB / 495.6 MB, free: 13.45 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001928/0.4713, allocations: 197.5 kB / 495.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4713, allocations: 0 / 495.8 MB, free: 13.26 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0002682/0.4716, allocations: 47.94 kB / 495.8 MB, free: 13.21 MB / 362.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 2 (inertia.w,load.phi) * Number of discrete variables: 3 ($whenCondition1,combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Number of discrete states: 2 (combiTimeTable.nextTimeEvent,combiTimeTable.nextTimeEventScaled) * Top-level inputs: 0 Notification: Strong component statistics for simulation (11): * Single equations (assignments): 9 * 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.0007997/0.4724, allocations: 358.1 kB / 496.1 MB, free: 13.01 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001663/0.4725, allocations: 67.94 kB / 496.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.425e-06/0.4725, allocations: 4 kB / 496.2 MB, free: 12.94 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.503e-05/0.4726, allocations: 40.23 kB / 496.3 MB, free: 12.9 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.4729, allocations: 36.58 kB / 496.3 MB, free: 12.86 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006799/0.4736, allocations: 388.2 kB / 496.7 MB, free: 12.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003106/0.4739, allocations: 0.7474 MB / 497.4 MB, free: 11.71 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 8.463e-05/0.474, allocations: 22.84 kB / 497.4 MB, free: 11.69 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.901e-05/0.4741, allocations: 19.44 kB / 497.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of SimCode: time 2.31e-07/0.4741, allocations: 0 / 497.5 MB, free: 11.67 MB / 362.7 MB Notification: Performance of Templates: time 0.004679/0.4787, allocations: 1.94 MB / 499.4 MB, free: 9.785 MB / 362.7 MB make -j1 -f HanserModelica_HanserModelica.Rotational.Drive.makefile (rm -f HanserModelica_HanserModelica.Rotational.Drive.pipe ; mkfifo HanserModelica_HanserModelica.Rotational.Drive.pipe ; head -c 1048576 < HanserModelica_HanserModelica.Rotational.Drive.pipe >> ../files/HanserModelica_HanserModelica.Rotational.Drive.sim & ./HanserModelica_HanserModelica.Rotational.Drive -abortSlowSimulation -alarm=480 -lv LOG_STATS > HanserModelica_HanserModelica.Rotational.Drive.pipe 2>&1)