Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.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.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00102/0.00102, allocations: 99.47 kB / 15.05 MB, free: 1.105 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.001068/0.001068, allocations: 177.3 kB / 15.94 MB, free: 228 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 205.4 MB / 222.1 MB, free: 5.508 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.0004891/0.0004892, allocations: 8 kB / 278.9 MB, free: 12.71 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3252/0.3257, allocations: 47.58 MB / 326.4 MB, free: 1.438 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.008766/0.3346, allocations: 6.55 MB / 333 MB, free: 12.37 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006372/0.341, allocations: 2.596 MB / 335.6 MB, free: 10.25 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00133/0.3424, allocations: 27.06 kB / 335.6 MB, free: 10.24 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001668/0.3441, allocations: 475.4 kB / 336.1 MB, free: 9.836 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001988/0.3461, allocations: 0.4907 MB / 336.6 MB, free: 9.344 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005749/0.3467, allocations: 159.8 kB / 336.7 MB, free: 9.188 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002436/0.3491, allocations: 1.053 MB / 337.8 MB, free: 8.133 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007462/0.3499, allocations: 435.2 kB / 338.2 MB, free: 7.691 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007341/0.3506, allocations: 442.2 kB / 338.6 MB, free: 7.258 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005488/0.3512, allocations: 489.7 kB / 339.1 MB, free: 6.777 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001025/0.3513, allocations: 64 kB / 339.2 MB, free: 6.715 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003158/0.3516, allocations: 99.97 kB / 339.3 MB, free: 6.617 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001697/0.3518, allocations: 187.2 kB / 339.5 MB, free: 6.434 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002627/0.352, allocations: 269 kB / 339.7 MB, free: 6.164 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001294/0.3534, allocations: 1.316 MB / 341 MB, free: 4.844 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.148e-06/0.3534, allocations: 4 kB / 341 MB, free: 4.84 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.895e-06/0.3534, allocations: 0 / 341 MB, free: 4.84 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.672e-05/0.3534, allocations: 0 / 341 MB, free: 4.84 MB / 270.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 250 * Number of variables: 250 Notification: Performance of Generate backend data structure: time 0.002377/0.3558, allocations: 1.273 MB / 342.3 MB, free: 3.512 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.321e-05/0.3559, allocations: 12.03 kB / 342.3 MB, free: 3.5 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000656/0.3565, allocations: 178.4 kB / 342.5 MB, free: 3.324 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001166/0.3577, allocations: 0.7153 MB / 343.2 MB, free: 2.566 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.47e-05/0.3578, allocations: 78 kB / 343.3 MB, free: 2.492 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001477/0.358, allocations: 103.9 kB / 343.4 MB, free: 2.391 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001627/0.3596, allocations: 0.9346 MB / 344.3 MB, free: 1.426 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.566e-05/0.3596, allocations: 4 kB / 344.3 MB, free: 1.422 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.605e-05/0.3597, allocations: 40 kB / 344.4 MB, free: 1.383 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.414e-05/0.3598, allocations: 24 kB / 344.4 MB, free: 1.359 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0012/0.361, allocations: 0.6597 MB / 345.1 MB, free: 0.7031 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005269/0.3663, allocations: 3.93 MB / 349 MB, free: 12.55 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006994/0.367, allocations: 452.4 kB / 349.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.943e-05/0.367, allocations: 4 kB / 349.4 MB, free: 12.08 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.003e-05/0.3671, allocations: 42.55 kB / 349.5 MB, free: 12.03 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 3.256e-06/0.3671, allocations: 0 / 349.5 MB, free: 12.03 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.002906/0.37, allocations: 1.438 MB / 350.9 MB, free: 10.52 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.46e-05/0.3701, allocations: 85.11 kB / 351 MB, free: 10.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000966/0.371, allocations: 0.7747 MB / 351.8 MB, free: 9.629 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.934e-05/0.3711, allocations: 37.7 kB / 351.8 MB, free: 9.586 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004422/0.3715, allocations: 0.572 MB / 352.4 MB, free: 9.004 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001368/0.3717, allocations: 157.8 kB / 352.5 MB, free: 8.848 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.829e-05/0.3717, allocations: 19.94 kB / 352.6 MB, free: 8.828 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001762/0.3719, allocations: 337.9 kB / 352.9 MB, free: 8.492 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003502/0.3723, allocations: 173.9 kB / 353.1 MB, free: 8.324 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005587/0.3728, allocations: 463.6 kB / 353.5 MB, free: 7.738 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000462/0.3733, allocations: 255.7 kB / 353.8 MB, free: 7.488 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.48e-06/0.3733, allocations: 4 kB / 353.8 MB, free: 7.484 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001343/0.3747, allocations: 0.7671 MB / 354.5 MB, free: 6.703 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.167e-05/0.3747, allocations: 8.438 kB / 354.5 MB, free: 6.695 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.997e-05/0.3747, allocations: 16 kB / 354.5 MB, free: 6.68 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002648/0.375, allocations: 73.62 kB / 354.6 MB, free: 6.602 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005243/0.3755, allocations: 155.7 kB / 354.8 MB, free: 6.449 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002339/0.3779, allocations: 2.814 MB / 357.6 MB, free: 3.363 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005831/0.3785, allocations: 43.95 kB / 357.6 MB, free: 3.32 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.088e-05/0.3786, allocations: 39.95 kB / 357.7 MB, free: 3.281 MB / 286.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 43 * 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 (86): * Single equations (assignments): 84 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0004872/0.379, allocations: 261.6 kB / 357.9 MB, free: 3.016 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001305/0.3792, allocations: 86.97 kB / 358 MB, free: 2.93 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009671/0.3802, allocations: 0.4952 MB / 358.5 MB, free: 2.422 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.642e-06/0.3802, allocations: 4 kB / 358.5 MB, free: 2.418 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.37e-06/0.3802, allocations: 4 kB / 358.5 MB, free: 2.414 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.263e-06/0.3802, allocations: 3.984 kB / 358.5 MB, free: 2.41 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002278/0.3825, allocations: 1.419 MB / 359.9 MB, free: 0.9062 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.35e-06/0.3825, allocations: 4.219 kB / 359.9 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003297/0.3828, allocations: 83.89 kB / 360 MB, free: 0.8203 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001685/0.383, allocations: 57.75 kB / 360.1 MB, free: 0.7578 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.383e-05/0.3831, allocations: 16 kB / 360.1 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002162/0.3852, allocations: 2.79 MB / 362.9 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.01e-06/0.3853, allocations: 7.984 kB / 362.9 MB, free: 13.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001287/0.3865, allocations: 0.8673 MB / 363.8 MB, free: 12.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002784/0.3868, allocations: 196 kB / 363.9 MB, free: 12.51 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.815e-05/0.3869, allocations: 8 kB / 364 MB, free: 12.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003928/0.3873, allocations: 39.97 kB / 364 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.488e-05/0.3874, allocations: 39.84 kB / 364 MB, free: 12.42 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.929e-05/0.3875, allocations: 16.12 kB / 364.1 MB, free: 12.41 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006749/0.3882, allocations: 0.5186 MB / 364.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3882, allocations: 0 / 364.6 MB, free: 11.89 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008759/0.3891, allocations: 208 kB / 364.8 MB, free: 11.69 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcse.inertiaRotor.w,dcse.la.i,quadraticLoadTorque.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 (40): * Single equations (assignments): 38 * 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: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 4,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002901/0.3894, allocations: 123.2 kB / 364.9 MB, free: 11.56 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001211/0.3906, allocations: 0.7082 MB / 365.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.537e-06/0.3906, allocations: 0 / 365.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006241/0.3912, allocations: 451.2 kB / 366 MB, free: 10.36 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001006/0.3922, allocations: 203.4 kB / 366.2 MB, free: 10.16 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003293/0.3955, allocations: 2.126 MB / 368.4 MB, free: 7.984 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006519/0.3962, allocations: 1.032 MB / 369.4 MB, free: 6.926 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004199/0.3966, allocations: 111.2 kB / 369.5 MB, free: 6.812 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00011/0.3968, allocations: 55.44 kB / 369.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of SimCode: time 1.052e-06/0.3968, allocations: 0 / 369.6 MB, free: 6.758 MB / 302.1 MB Notification: Performance of Templates: time 0.01876/0.4155, allocations: 9.114 MB / 378.7 MB, free: 13.63 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile Environment - environmentSimulation: (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1) Environment - environmentSimulation: