Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) 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/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/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) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM,tolerance=1e-06,outputFormat="empty",numberOfIntervals=50000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001346/0.001346, allocations: 104.3 kB / 17.06 MB, free: 6.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001252/0.001252, allocations: 196.1 kB / 18 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.806/1.806, allocations: 205.1 MB / 223.9 MB, free: 12.2 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001327/0.001327, allocations: 55.92 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1674/0.1687, allocations: 46.62 MB / 374.5 MB, free: 4.531 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM): time 0.3773/0.5461, allocations: 15.17 MB / 389.7 MB, free: 4.375 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01796/0.5641, allocations: 5.678 MB / 395.4 MB, free: 296 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007204/0.5714, allocations: 74.53 kB / 395.4 MB, free: 272 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006556/0.5781, allocations: 0.9656 MB / 396.4 MB, free: 15.77 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007046/0.5852, allocations: 0.6227 MB / 397 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004063/0.5894, allocations: 0.7447 MB / 397.8 MB, free: 14.84 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.009238/0.5986, allocations: 2.741 MB / 400.5 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00404/0.6027, allocations: 1.296 MB / 401.8 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003526/0.6062, allocations: 1.037 MB / 402.8 MB, free: 12.17 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004192/0.6105, allocations: 1.067 MB / 403.9 MB, free: 11.58 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001415/0.6119, allocations: 265 kB / 404.2 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001964/0.6139, allocations: 263.7 kB / 404.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001384/0.6153, allocations: 0.5313 MB / 405 MB, free: 11.19 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002841/0.6182, allocations: 1.153 MB / 406.1 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005205/0.6234, allocations: 3.157 MB / 409.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.616e-06/0.6234, allocations: 0 / 409.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.354e-06/0.6234, allocations: 0 / 409.3 MB, free: 8.363 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0001119/0.6236, allocations: 1 kB / 409.3 MB, free: 8.363 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 473 * Number of variables: 473 Notification: Performance of Generate backend data structure: time 0.00716/0.6307, allocations: 2.467 MB / 411.7 MB, free: 6.578 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.744e-05/0.6308, allocations: 14.86 kB / 411.7 MB, free: 6.574 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000689/0.6315, allocations: 261.6 kB / 412 MB, free: 6.441 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003137/0.6346, allocations: 1.256 MB / 413.3 MB, free: 5.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004175/0.6351, allocations: 256 kB / 413.5 MB, free: 5.266 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004113/0.6355, allocations: 198.8 kB / 413.7 MB, free: 5.191 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004715/0.6402, allocations: 1.916 MB / 415.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.425e-05/0.6403, allocations: 3.219 kB / 415.6 MB, free: 4.02 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001777/0.6405, allocations: 76.41 kB / 415.7 MB, free: 3.961 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.656e-05/0.6406, allocations: 50.16 kB / 415.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004079/0.6447, allocations: 1.575 MB / 417.3 MB, free: 3.211 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01605/0.6607, allocations: 7.162 MB / 424.5 MB, free: 13.1 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00298/0.6638, allocations: 1.21 MB / 425.7 MB, free: 11.82 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001281/0.6651, allocations: 460.3 kB / 426.1 MB, free: 11.36 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.905e-05/0.6652, allocations: 12.94 kB / 426.2 MB, free: 11.35 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.467e-05/0.6653, allocations: 47.5 kB / 426.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of pre-optimization done (n=83): time 3.166e-06/0.6653, allocations: 0 / 426.2 MB, free: 11.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=110): time 0.03692/0.7022, allocations: 7.874 MB / 434.1 MB, free: 3.293 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.587e-05/0.7023, allocations: 64.41 kB / 434.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003141/0.7055, allocations: 1.24 MB / 435.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000181/0.7057, allocations: 49.7 kB / 435.4 MB, free: 1.914 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001068/0.7068, allocations: 0.9861 MB / 436.4 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005926/0.7074, allocations: 394.4 kB / 436.8 MB, free: 0.5234 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006232/0.708, allocations: 271.3 kB / 437.1 MB, free: 260 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001663/0.7082, allocations: 305.1 kB / 437.4 MB, free: 15.95 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002229/0.7104, allocations: 0.7348 MB / 438.1 MB, free: 15.21 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00246/0.7129, allocations: 1.191 MB / 439.3 MB, free: 13.82 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004357/0.7173, allocations: 1.797 MB / 441.1 MB, free: 11.82 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.085e-05/0.7173, allocations: 8 kB / 441.1 MB, free: 11.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization): time 0.005868/0.7232, allocations: 2.145 MB / 443.2 MB, free: 9.637 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.004e-05/0.7233, allocations: 12 kB / 443.2 MB, free: 9.625 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.026e-05/0.7233, allocations: 12 kB / 443.3 MB, free: 9.613 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001996/0.7235, allocations: 44.84 kB / 443.3 MB, free: 9.566 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00193/0.7255, allocations: 415.6 kB / 443.7 MB, free: 9.16 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00145/0.7269, allocations: 1.386 MB / 445.1 MB, free: 7.633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002093/0.729, allocations: 135.9 kB / 445.2 MB, free: 7.5 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001744/0.7292, allocations: 68 kB / 445.3 MB, free: 7.434 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0028/0.732, allocations: 0.9802 MB / 446.3 MB, free: 6.449 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.002629/0.7347, allocations: 1.154 MB / 447.4 MB, free: 5.09 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.004079/0.7388, allocations: 1.736 MB / 449.2 MB, free: 3.145 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 2.015e-05/0.7388, allocations: 4 kB / 449.2 MB, free: 3.141 MB / 366.1 MB Notification: Performance of matching and sorting (n=197) (initialization_lambda0): time 0.005988/0.7448, allocations: 2.063 MB / 451.2 MB, free: 1.047 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.594e-05/0.7449, allocations: 12 kB / 451.2 MB, free: 1.035 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.035e-05/0.7449, allocations: 16 kB / 451.3 MB, free: 1.02 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001729/0.7451, allocations: 37.34 kB / 451.3 MB, free: 0.9805 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001846/0.7469, allocations: 407.3 kB / 451.7 MB, free: 0.582 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001841/0.7488, allocations: 1.371 MB / 453.1 MB, free: 15.07 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002293/0.7511, allocations: 127.9 kB / 453.2 MB, free: 14.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000235/0.7514, allocations: 64 kB / 453.2 MB, free: 14.88 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 66 * Number of states: 0 () * Number of discrete variables: 5 (kinematicPTP.noWphase,kinematicPTP.moving[1],speedController.integrator.local_reset,currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (196): * Single equations (assignments): 195 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007191/0.7521, allocations: 283.6 kB / 453.5 MB, free: 14.6 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006909/0.7528, allocations: 158 kB / 453.7 MB, free: 14.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004551/0.7574, allocations: 1.581 MB / 455.3 MB, free: 12.82 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.621e-05/0.7574, allocations: 12 kB / 455.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.512e-06/0.7574, allocations: 3.938 kB / 455.3 MB, free: 12.81 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.436e-05/0.7574, allocations: 7.969 kB / 455.3 MB, free: 12.8 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008864/0.7663, allocations: 3.749 MB / 459 MB, free: 8.84 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.277e-05/0.7664, allocations: 16.97 kB / 459.1 MB, free: 8.824 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001192/0.7676, allocations: 263.6 kB / 459.3 MB, free: 8.566 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001339/0.7677, allocations: 28.86 kB / 459.3 MB, free: 8.535 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.543e-05/0.7678, allocations: 39.98 kB / 459.4 MB, free: 8.496 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001475/0.7693, allocations: 1.367 MB / 460.7 MB, free: 6.988 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/0.7694, allocations: 15.94 kB / 460.8 MB, free: 6.973 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005118/0.7745, allocations: 2.219 MB / 463 MB, free: 4.582 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009442/0.7754, allocations: 307 kB / 463.3 MB, free: 4.262 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000175/0.7756, allocations: 39.98 kB / 463.3 MB, free: 4.223 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009916/0.7766, allocations: 103.9 kB / 463.4 MB, free: 4.121 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003162/0.777, allocations: 128.2 kB / 463.5 MB, free: 3.996 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.985e-05/0.777, allocations: 40 kB / 463.6 MB, free: 3.957 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001363/0.7784, allocations: 0.8142 MB / 464.4 MB, free: 3.145 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.7784, allocations: 0 / 464.4 MB, free: 3.145 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.002425/0.7808, allocations: 0.6094 MB / 465 MB, free: 2.535 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 43 * Number of states: 11 (loadInertia.w,speedSensor.flange.phi,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,speedController.integrator.y) * Number of discrete variables: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (109): * Single equations (assignments): 108 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002763/0.7811, allocations: 154.9 kB / 465.2 MB, free: 2.375 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006906/0.788, allocations: 2.824 MB / 468 MB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 1.323e-05/0.7881, allocations: 0 / 468 MB, free: 15.54 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003034/0.7911, allocations: 0.7082 MB / 468.7 MB, free: 14.82 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002578/0.7937, allocations: 370.3 kB / 469.1 MB, free: 14.47 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008256/0.802, allocations: 3.534 MB / 472.6 MB, free: 10.77 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001419/0.8035, allocations: 1.349 MB / 473.9 MB, free: 9.391 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001671/0.8052, allocations: 292.4 kB / 474.2 MB, free: 9.102 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003997/0.8056, allocations: 107.5 kB / 474.3 MB, free: 8.996 MB / 398.1 MB Notification: Performance of SimCode: time 9.92e-07/0.8056, allocations: 3.938 kB / 474.3 MB, free: 8.992 MB / 398.1 MB Notification: Performance of Templates: time 0.04488/0.8505, allocations: 18.34 MB / 492.7 MB, free: 6.625 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.ControlledDCDrives.PositionControlledDCPM.pipe 2>&1)