Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_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.1_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.1_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.001336, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001436/0.001436, allocations: 193.7 kB / 16.53 MB, free: 6.664 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.776/1.776, allocations: 205.1 MB / 222.4 MB, free: 4.605 MB / 174.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.002234/0.002234, allocations: 55.92 kB / 278.7 MB, free: 12.35 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4028/0.4051, allocations: 46.63 MB / 325.3 MB, free: 1.871 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01524/0.4204, allocations: 12.11 MB / 337.4 MB, free: 7.773 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008955/0.4294, allocations: 3.305 MB / 340.7 MB, free: 4.457 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002611/0.4321, allocations: 35.94 kB / 340.8 MB, free: 4.422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002276/0.4344, allocations: 0.6595 MB / 341.4 MB, free: 3.758 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00346/0.4379, allocations: 0.7286 MB / 342.2 MB, free: 3.023 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001178/0.4391, allocations: 399.5 kB / 342.5 MB, free: 2.633 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003452/0.4426, allocations: 2.405 MB / 344.9 MB, free: 220 kB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001494/0.4441, allocations: 0.993 MB / 345.9 MB, free: 15.18 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001655/0.4457, allocations: 0.8911 MB / 346.8 MB, free: 14.29 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001025/0.4468, allocations: 0.9839 MB / 347.8 MB, free: 13.3 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002823/0.4471, allocations: 228 kB / 348 MB, free: 13.07 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000556/0.4476, allocations: 268 kB / 348.3 MB, free: 12.81 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003701/0.448, allocations: 462.3 kB / 348.7 MB, free: 12.36 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001102/0.4491, allocations: 1.081 MB / 349.8 MB, free: 11.27 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003281/0.4524, allocations: 2.784 MB / 352.6 MB, free: 8.48 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.4524, allocations: 4 kB / 352.6 MB, free: 8.477 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.944e-06/0.4524, allocations: 4 kB / 352.6 MB, free: 8.473 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.41e-05/0.4525, allocations: 0 / 352.6 MB, free: 8.473 MB / 286.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.004329/0.4568, allocations: 2.164 MB / 354.8 MB, free: 6.25 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.286e-05/0.4569, allocations: 8.031 kB / 354.8 MB, free: 6.242 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009799/0.4579, allocations: 274.4 kB / 355.1 MB, free: 5.973 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001878/0.4598, allocations: 1.111 MB / 356.2 MB, free: 4.805 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001016/0.4599, allocations: 111.5 kB / 356.3 MB, free: 4.695 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000221/0.4601, allocations: 167.8 kB / 356.4 MB, free: 4.531 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002798/0.4629, allocations: 1.496 MB / 357.9 MB, free: 2.973 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.768e-05/0.463, allocations: 15.91 kB / 358 MB, free: 2.957 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001514/0.4632, allocations: 67.98 kB / 358 MB, free: 2.891 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.04e-05/0.4632, allocations: 36 kB / 358.1 MB, free: 2.855 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002079/0.4653, allocations: 1.049 MB / 359.1 MB, free: 1.801 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009487/0.4748, allocations: 6.288 MB / 365.4 MB, free: 11.21 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001629/0.4765, allocations: 0.6198 MB / 366 MB, free: 10.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009265/0.4774, allocations: 466.4 kB / 366.5 MB, free: 10.12 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.535e-05/0.4775, allocations: 12.5 kB / 366.5 MB, free: 10.11 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.387e-05/0.4775, allocations: 39.12 kB / 366.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of pre-optimization done (n=66): time 2.725e-06/0.4775, allocations: 0 / 366.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.005238/0.4828, allocations: 2.372 MB / 368.9 MB, free: 7.594 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.481e-05/0.4829, allocations: 111.5 kB / 369 MB, free: 7.457 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001844/0.4847, allocations: 1.306 MB / 370.3 MB, free: 6.137 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.582e-05/0.4848, allocations: 41.7 kB / 370.3 MB, free: 6.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006622/0.4855, allocations: 0.8531 MB / 371.2 MB, free: 5.227 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002016/0.4857, allocations: 256.3 kB / 371.5 MB, free: 4.973 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003409/0.486, allocations: 206.7 kB / 371.7 MB, free: 4.762 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001765/0.4862, allocations: 349.9 kB / 372 MB, free: 4.414 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006255/0.4868, allocations: 282.5 kB / 372.3 MB, free: 4.141 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001036/0.4879, allocations: 0.7381 MB / 373 MB, free: 3.188 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001654/0.4896, allocations: 1.084 MB / 374.1 MB, free: 1.895 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.4896, allocations: 4 kB / 374.1 MB, free: 1.891 MB / 302.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002443/0.492, allocations: 1.256 MB / 375.4 MB, free: 0.6172 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.435e-05/0.4921, allocations: 20.03 kB / 375.4 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.096e-05/0.4921, allocations: 16 kB / 375.4 MB, free: 0.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006101/0.4927, allocations: 138.4 kB / 375.5 MB, free: 448 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008552/0.4936, allocations: 259.5 kB / 375.8 MB, free: 188 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004583/0.4982, allocations: 4.634 MB / 380.4 MB, free: 11.13 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001092/0.4993, allocations: 67.88 kB / 380.5 MB, free: 11.07 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.522e-05/0.4994, allocations: 56 kB / 380.5 MB, free: 11.01 MB / 318.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.0007301/0.5001, allocations: 353.5 kB / 380.9 MB, free: 10.66 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.5004, allocations: 138.3 kB / 381 MB, free: 10.52 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001817/0.5022, allocations: 0.8257 MB / 381.8 MB, free: 9.668 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.335e-05/0.5022, allocations: 15.92 kB / 381.9 MB, free: 9.652 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.236e-06/0.5022, allocations: 7.938 kB / 381.9 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.224e-06/0.5022, allocations: 0 / 381.9 MB, free: 9.645 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003939/0.5062, allocations: 2.334 MB / 384.2 MB, free: 7.195 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.813e-06/0.5062, allocations: 4 kB / 384.2 MB, free: 7.191 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005718/0.5068, allocations: 127.9 kB / 384.3 MB, free: 7.066 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004507/0.5073, allocations: 138.4 kB / 384.5 MB, free: 6.922 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.542e-05/0.5073, allocations: 23.98 kB / 384.5 MB, free: 6.898 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004348/0.5117, allocations: 4.787 MB / 389.3 MB, free: 1.691 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.18e-06/0.5117, allocations: 4 kB / 389.3 MB, free: 1.688 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002331/0.514, allocations: 1.303 MB / 390.6 MB, free: 316 kB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004915/0.5145, allocations: 283.3 kB / 390.9 MB, free: 12 kB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001819/0.5147, allocations: 16.05 kB / 390.9 MB, free: 15.99 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006133/0.5154, allocations: 35.92 kB / 390.9 MB, free: 15.96 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001579/0.5155, allocations: 72.36 kB / 391 MB, free: 15.89 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.087e-05/0.5156, allocations: 23.98 kB / 391 MB, free: 15.87 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.001412/0.517, allocations: 0.8781 MB / 391.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of sort global known variables: time 2e-07/0.517, allocations: 0 / 391.9 MB, free: 14.99 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.001348/0.5184, allocations: 328 kB / 392.2 MB, free: 14.67 MB / 334.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.0003441/0.5187, allocations: 131.1 kB / 392.3 MB, free: 14.53 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.002127/0.5208, allocations: 1.147 MB / 393.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.198e-06/0.5209, allocations: 0 / 393.5 MB, free: 13.34 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000993/0.5219, allocations: 0.7085 MB / 394.2 MB, free: 12.6 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001766/0.5236, allocations: 373.5 kB / 394.5 MB, free: 12.23 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005478/0.5291, allocations: 2.927 MB / 397.5 MB, free: 9.227 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008433/0.53, allocations: 1.214 MB / 398.7 MB, free: 7.984 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0007046/0.5307, allocations: 171.6 kB / 398.9 MB, free: 7.812 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002178/0.5309, allocations: 99.42 kB / 398.9 MB, free: 7.715 MB / 334.1 MB Notification: Performance of SimCode: time 8.21e-07/0.5309, allocations: 0 / 398.9 MB, free: 7.715 MB / 334.1 MB Notification: Performance of Templates: time 0.03512/0.5661, allocations: 17.65 MB / 416.6 MB, free: 6.035 MB / 350.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1)