Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001336/0.001337, allocations: 104.7 kB / 17.06 MB, free: 6.027 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.001554/0.001555, allocations: 196 kB / 18 MB, free: 5.105 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.72/1.72, allocations: 205.1 MB / 223.9 MB, free: 12.26 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.001269/0.001269, allocations: 59.91 kB / 327.9 MB, free: 3.281 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1493/0.1505, allocations: 46.61 MB / 374.5 MB, free: 4.559 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.2925/0.4431, allocations: 12.09 MB / 386.6 MB, free: 6.418 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.007973/0.4511, allocations: 3.316 MB / 389.9 MB, free: 4.426 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002714/0.4539, allocations: 35.34 kB / 389.9 MB, free: 4.422 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002483/0.4564, allocations: 0.666 MB / 390.6 MB, free: 4.074 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004193/0.4606, allocations: 0.7204 MB / 391.3 MB, free: 3.551 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001427/0.4621, allocations: 408.8 kB / 391.7 MB, free: 3.289 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.004438/0.4665, allocations: 2.409 MB / 394.1 MB, free: 1.992 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001601/0.4681, allocations: 1.003 MB / 395.1 MB, free: 1.48 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002211/0.4704, allocations: 0.9119 MB / 396 MB, free: 1.004 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001449/0.4718, allocations: 0.9784 MB / 397 MB, free: 484 kB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003747/0.4722, allocations: 230.2 kB / 397.2 MB, free: 484 kB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008751/0.4731, allocations: 277.4 kB / 397.5 MB, free: 464 kB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0005002/0.4736, allocations: 456.2 kB / 398 MB, free: 124 kB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001944/0.4756, allocations: 1.08 MB / 399 MB, free: 15.43 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005706/0.4813, allocations: 2.823 MB / 401.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.023e-06/0.4813, allocations: 0 / 401.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.4813, allocations: 0 / 401.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.593e-05/0.4814, allocations: 0 / 401.9 MB, free: 14.36 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.006319/0.4877, allocations: 2.16 MB / 404 MB, free: 12.82 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.751e-05/0.4878, allocations: 13.94 kB / 404 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001355/0.4892, allocations: 282.6 kB / 404.3 MB, free: 12.69 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002936/0.4921, allocations: 1.123 MB / 405.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001042/0.4923, allocations: 112.8 kB / 405.5 MB, free: 11.74 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002909/0.4926, allocations: 165.7 kB / 405.7 MB, free: 11.68 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003441/0.496, allocations: 1.507 MB / 407.2 MB, free: 10.73 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.201e-05/0.4961, allocations: 12.41 kB / 407.2 MB, free: 10.72 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001429/0.4962, allocations: 61.91 kB / 407.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.866e-05/0.4963, allocations: 38.38 kB / 407.3 MB, free: 10.68 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002572/0.4989, allocations: 1.049 MB / 408.4 MB, free: 10.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01084/0.5097, allocations: 6.234 MB / 414.6 MB, free: 4.949 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001637/0.5114, allocations: 0.6081 MB / 415.2 MB, free: 4.633 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009278/0.5124, allocations: 477.3 kB / 415.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.301e-05/0.5124, allocations: 7.125 kB / 415.7 MB, free: 4.398 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.419e-05/0.5125, allocations: 39.31 kB / 415.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of pre-optimization done (n=66): time 3.406e-06/0.5125, allocations: 0 / 415.7 MB, free: 4.352 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.00579/0.5183, allocations: 2.371 MB / 418.1 MB, free: 2.812 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.306e-05/0.5184, allocations: 110.2 kB / 418.2 MB, free: 2.688 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002057/0.5205, allocations: 1.314 MB / 419.5 MB, free: 1.953 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.129e-05/0.5205, allocations: 36.11 kB / 419.6 MB, free: 1.914 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007195/0.5212, allocations: 0.8476 MB / 420.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002338/0.5215, allocations: 260.3 kB / 420.7 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002852/0.5218, allocations: 206.7 kB / 420.9 MB, free: 0.6719 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001681/0.5219, allocations: 349.9 kB / 421.2 MB, free: 332 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005615/0.5225, allocations: 282.5 kB / 421.5 MB, free: 48 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009372/0.5235, allocations: 0.7342 MB / 422.2 MB, free: 15.1 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00163/0.5251, allocations: 1.084 MB / 423.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.835e-06/0.5251, allocations: 7.938 kB / 423.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002585/0.5277, allocations: 1.268 MB / 424.6 MB, free: 12.52 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.383e-05/0.5278, allocations: 12 kB / 424.6 MB, free: 12.5 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.671e-05/0.5278, allocations: 16 kB / 424.6 MB, free: 12.49 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000614/0.5284, allocations: 142.7 kB / 424.7 MB, free: 12.34 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008454/0.5293, allocations: 247.6 kB / 425 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004568/0.5339, allocations: 4.638 MB / 429.6 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001661/0.5355, allocations: 55.91 kB / 429.7 MB, free: 6.98 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001097/0.5357, allocations: 56 kB / 429.7 MB, free: 6.926 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0009432/0.5366, allocations: 365.4 kB / 430.1 MB, free: 6.559 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003286/0.537, allocations: 142.2 kB / 430.2 MB, free: 6.418 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001924/0.5389, allocations: 0.8256 MB / 431 MB, free: 5.57 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.47e-05/0.5389, allocations: 11.94 kB / 431.1 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.5389, allocations: 4.125 kB / 431.1 MB, free: 5.555 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.685e-05/0.539, allocations: 4.125 kB / 431.1 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004522/0.5435, allocations: 2.338 MB / 433.4 MB, free: 3.102 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.054e-06/0.5435, allocations: 4 kB / 433.4 MB, free: 3.098 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005751/0.5441, allocations: 119.9 kB / 433.5 MB, free: 2.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004719/0.5446, allocations: 142.8 kB / 433.7 MB, free: 2.832 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.891e-05/0.5446, allocations: 20 kB / 433.7 MB, free: 2.812 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004432/0.5491, allocations: 4.783 MB / 438.5 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.07e-06/0.5491, allocations: 8 kB / 438.5 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002718/0.5518, allocations: 1.3 MB / 439.8 MB, free: 12.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007551/0.5526, allocations: 283.3 kB / 440.1 MB, free: 11.93 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001599/0.5528, allocations: 23.98 kB / 440.1 MB, free: 11.9 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006599/0.5534, allocations: 39.97 kB / 440.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001826/0.5536, allocations: 60.38 kB / 440.2 MB, free: 11.8 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.277e-05/0.5537, allocations: 27.98 kB / 440.2 MB, free: 11.78 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001571/0.5553, allocations: 0.8742 MB / 441.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.5553, allocations: 0 / 441.1 MB, free: 10.9 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001766/0.5571, allocations: 332 kB / 441.4 MB, free: 10.58 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * 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,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003919/0.5575, allocations: 139 kB / 441.5 MB, free: 10.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002248/0.5597, allocations: 1.118 MB / 442.7 MB, free: 9.277 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 8.667e-06/0.5598, allocations: 12.05 kB / 442.7 MB, free: 9.266 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00115/0.5609, allocations: 0.6952 MB / 443.4 MB, free: 8.535 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001924/0.5628, allocations: 366.4 kB / 443.7 MB, free: 8.184 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005994/0.5689, allocations: 2.898 MB / 446.6 MB, free: 5.207 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001015/0.5699, allocations: 1.217 MB / 447.8 MB, free: 3.957 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.000832/0.5707, allocations: 175.6 kB / 448 MB, free: 3.781 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002301/0.571, allocations: 95.42 kB / 448.1 MB, free: 3.688 MB / 366.1 MB Notification: Performance of SimCode: time 1.453e-06/0.571, allocations: 0 / 448.1 MB, free: 3.688 MB / 366.1 MB Notification: Performance of Templates: time 0.0384/0.6094, allocations: 18.34 MB / 466.4 MB, free: 1.312 MB / 382.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)