Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.008115/0.008115, allocations: 102.3 kB / 15.73 MB, free: 5.578 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.00156/0.00156, allocations: 196.2 kB / 16.67 MB, free: 5.52 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.656/1.656, allocations: 205.1 MB / 222.5 MB, free: 12.25 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.001744/0.001744, allocations: 55.91 kB / 326.5 MB, free: 3.297 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.163/0.1648, allocations: 46.62 MB / 373.2 MB, free: 4.562 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.3478/0.5126, allocations: 11.69 MB / 384.9 MB, free: 6.695 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008885/0.5216, allocations: 3.209 MB / 388.1 MB, free: 4.793 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00391/0.5257, allocations: 39.19 kB / 388.1 MB, free: 4.785 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002432/0.5281, allocations: 0.6716 MB / 388.8 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003253/0.5314, allocations: 0.732 MB / 389.5 MB, free: 3.891 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001148/0.5326, allocations: 393.5 kB / 389.9 MB, free: 3.641 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00343/0.536, allocations: 2.249 MB / 392.1 MB, free: 2.43 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001704/0.5377, allocations: 1.003 MB / 393.1 MB, free: 1.926 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002093/0.5398, allocations: 0.844 MB / 394 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001753/0.5416, allocations: 0.9103 MB / 394.9 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003818/0.542, allocations: 217.2 kB / 395.1 MB, free: 0.9844 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007464/0.5427, allocations: 253.4 kB / 395.4 MB, free: 0.9766 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0004438/0.5432, allocations: 436.3 kB / 395.8 MB, free: 0.6562 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001336/0.5445, allocations: 1.016 MB / 396.8 MB, free: 8 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004836/0.5494, allocations: 2.679 MB / 399.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.424e-06/0.5494, allocations: 1.062 kB / 399.5 MB, free: 14.99 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.5494, allocations: 4 kB / 399.5 MB, free: 14.98 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.161e-05/0.5495, allocations: 0 / 399.5 MB, free: 14.98 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: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.004807/0.5543, allocations: 2.053 MB / 401.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.9e-05/0.5544, allocations: 10.78 kB / 401.6 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000959/0.5553, allocations: 258.2 kB / 401.8 MB, free: 13.54 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002062/0.5574, allocations: 1.047 MB / 402.8 MB, free: 12.7 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001105/0.5575, allocations: 113.3 kB / 403 MB, free: 12.65 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002664/0.5578, allocations: 163.4 kB / 403.1 MB, free: 12.59 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003001/0.5608, allocations: 1.49 MB / 404.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.253e-05/0.5609, allocations: 3.469 kB / 404.6 MB, free: 11.63 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.561, allocations: 67.34 kB / 404.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.383e-05/0.5611, allocations: 37.09 kB / 404.7 MB, free: 11.58 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002148/0.5632, allocations: 0.9762 MB / 405.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009586/0.5728, allocations: 6.52 MB / 412.2 MB, free: 5.488 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009778/0.5739, allocations: 403.3 kB / 412.6 MB, free: 5.285 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005105/0.5744, allocations: 221.1 kB / 412.8 MB, free: 5.18 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.365e-05/0.5744, allocations: 6 kB / 412.8 MB, free: 5.176 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005857/0.575, allocations: 268.6 kB / 413.1 MB, free: 4.984 MB / 334.1 MB Notification: Performance of pre-optimization done (n=50): time 3.647e-06/0.5751, allocations: 0 / 413.1 MB, free: 4.984 MB / 334.1 MB Notification: Performance of matching and sorting (n=56): time 0.004265/0.5793, allocations: 1.762 MB / 414.9 MB, free: 3.77 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001056/0.5794, allocations: 161.1 kB / 415 MB, free: 3.582 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001977/0.5814, allocations: 1.274 MB / 416.3 MB, free: 2.867 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.726e-05/0.5815, allocations: 37.14 kB / 416.3 MB, free: 2.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008364/0.5823, allocations: 0.8723 MB / 417.2 MB, free: 2.047 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001764/0.5825, allocations: 209.3 kB / 417.4 MB, free: 1.867 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003048/0.5828, allocations: 221.1 kB / 417.6 MB, free: 1.73 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001489/0.583, allocations: 360.2 kB / 418 MB, free: 1.383 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004453/0.5834, allocations: 224.3 kB / 418.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008816/0.5843, allocations: 0.8087 MB / 419 MB, free: 380 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001435/0.5858, allocations: 1.114 MB / 420.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.147e-05/0.5858, allocations: 5.281 kB / 420.1 MB, free: 15.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.002102/0.5879, allocations: 1.175 MB / 421.3 MB, free: 14.25 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.71e-05/0.588, allocations: 37.7 kB / 421.3 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.645e-05/0.588, allocations: 20 kB / 421.3 MB, free: 14.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003101/0.5884, allocations: 74.31 kB / 421.4 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007833/0.5891, allocations: 267.5 kB / 421.7 MB, free: 13.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002191/0.5913, allocations: 2.784 MB / 424.5 MB, free: 10.78 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001251/0.5926, allocations: 67.89 kB / 424.5 MB, free: 10.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.759e-05/0.5927, allocations: 60 kB / 424.6 MB, free: 10.66 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0007731/0.5935, allocations: 357.3 kB / 424.9 MB, free: 10.3 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000189/0.5937, allocations: 130.4 kB / 425.1 MB, free: 10.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001146/0.5948, allocations: 0.5567 MB / 425.6 MB, free: 9.594 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.5949, allocations: 4 kB / 425.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.068e-06/0.5949, allocations: 0 / 425.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.5949, allocations: 0 / 425.6 MB, free: 9.59 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003229/0.5981, allocations: 1.866 MB / 427.5 MB, free: 7.605 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.753e-06/0.5981, allocations: 7.938 kB / 427.5 MB, free: 7.598 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004229/0.5986, allocations: 99.89 kB / 427.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001985/0.5988, allocations: 49.69 kB / 427.6 MB, free: 7.445 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.464e-05/0.5988, allocations: 16 kB / 427.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002187/0.601, allocations: 2.749 MB / 430.4 MB, free: 4.398 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.801e-06/0.601, allocations: 12 kB / 430.4 MB, free: 4.387 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001543/0.6026, allocations: 0.9122 MB / 431.3 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005858/0.6032, allocations: 255.4 kB / 431.6 MB, free: 3.137 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000284/0.6035, allocations: 19.98 kB / 431.6 MB, free: 3.117 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006497/0.6041, allocations: 27.98 kB / 431.6 MB, free: 3.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001443/0.6043, allocations: 63.59 kB / 431.7 MB, free: 3.027 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.261e-05/0.6043, allocations: 20 kB / 431.7 MB, free: 3.008 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001347/0.6057, allocations: 0.8422 MB / 432.6 MB, free: 2.164 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.6057, allocations: 3.938 kB / 432.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001549/0.6073, allocations: 308 kB / 432.9 MB, free: 1.859 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,1,100.0%), (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.0003157/0.6076, allocations: 139 kB / 433 MB, free: 1.715 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001804/0.6094, allocations: 0.9247 MB / 433.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 5.139e-06/0.6094, allocations: 0 / 433.9 MB, free: 0.75 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000701/0.6101, allocations: 475.7 kB / 434.4 MB, free: 268 kB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.6117, allocations: 333.8 kB / 434.7 MB, free: 15.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005255/0.617, allocations: 2.516 MB / 437.2 MB, free: 13.35 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001022/0.618, allocations: 1.178 MB / 438.4 MB, free: 12.14 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006995/0.6187, allocations: 167.3 kB / 438.6 MB, free: 11.97 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000209/0.6189, allocations: 83.44 kB / 438.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of SimCode: time 1.432e-06/0.6189, allocations: 0 / 438.6 MB, free: 11.89 MB / 366.1 MB Notification: Performance of Templates: time 0.03284/0.6518, allocations: 15.24 MB / 453.9 MB, free: 12.62 MB / 382.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)