Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.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.2.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.2.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.001328/0.001328, 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.001861/0.001861, allocations: 195.5 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.645/1.645, 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.001242/0.001242, allocations: 55.92 kB / 278.7 MB, free: 12.34 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.304/0.3053, allocations: 46.63 MB / 325.3 MB, free: 1.84 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.009745/0.3151, allocations: 8.182 MB / 333.5 MB, free: 11.33 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006629/0.3218, allocations: 2.728 MB / 336.2 MB, free: 8.98 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00115/0.323, allocations: 23.94 kB / 336.2 MB, free: 8.957 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001734/0.3247, allocations: 0.5519 MB / 336.8 MB, free: 8.402 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001373/0.3261, allocations: 484.2 kB / 337.3 MB, free: 7.926 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005606/0.3267, allocations: 255.7 kB / 337.5 MB, free: 7.676 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001689/0.3284, allocations: 1.494 MB / 339 MB, free: 6.176 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009383/0.3293, allocations: 0.5886 MB / 339.6 MB, free: 5.566 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009066/0.3302, allocations: 0.5641 MB / 340.2 MB, free: 5 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007164/0.331, allocations: 0.6066 MB / 340.8 MB, free: 4.391 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001906/0.3312, allocations: 140 kB / 340.9 MB, free: 4.254 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004169/0.3316, allocations: 184 kB / 341.1 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002499/0.3319, allocations: 286.9 kB / 341.4 MB, free: 3.793 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006688/0.3325, allocations: 0.6687 MB / 342 MB, free: 3.121 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001721/0.3343, allocations: 1.732 MB / 343.8 MB, free: 1.383 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3343, allocations: 0 / 343.8 MB, free: 1.383 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.433e-06/0.3343, allocations: 4 kB / 343.8 MB, free: 1.379 MB / 270.1 MB Notification: Performance of Transformations before backend: time 1.881e-05/0.3343, allocations: 3.984 kB / 343.8 MB, free: 1.375 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.002539/0.3369, allocations: 1.472 MB / 345.3 MB, free: 15.84 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.257e-05/0.3369, allocations: 8.031 kB / 345.3 MB, free: 15.84 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007058/0.3376, allocations: 195.3 kB / 345.5 MB, free: 15.64 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001256/0.3389, allocations: 0.7463 MB / 346.2 MB, free: 14.86 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.14e-05/0.339, allocations: 74 kB / 346.3 MB, free: 14.79 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001377/0.3391, allocations: 99.91 kB / 346.4 MB, free: 14.69 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001495/0.3406, allocations: 0.9425 MB / 347.3 MB, free: 13.72 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.06e-05/0.3407, allocations: 4 kB / 347.3 MB, free: 13.71 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.645e-05/0.3408, allocations: 43.98 kB / 347.4 MB, free: 13.67 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.147e-05/0.3408, allocations: 24 kB / 347.4 MB, free: 13.65 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001231/0.342, allocations: 0.6519 MB / 348 MB, free: 13 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005233/0.3473, allocations: 3.957 MB / 352 MB, free: 8.812 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007828/0.3481, allocations: 447.9 kB / 352.4 MB, free: 8.348 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006368/0.3487, allocations: 268.7 kB / 352.7 MB, free: 8.082 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.754e-05/0.3488, allocations: 4 kB / 352.7 MB, free: 8.078 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.323e-05/0.3488, allocations: 38.56 kB / 352.7 MB, free: 8.031 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.765e-06/0.3488, allocations: 0 / 352.7 MB, free: 8.031 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003036/0.3519, allocations: 1.545 MB / 354.3 MB, free: 6.395 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.878e-05/0.3519, allocations: 89.05 kB / 354.4 MB, free: 6.289 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.353, allocations: 0.8333 MB / 355.2 MB, free: 5.449 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.113e-05/0.3531, allocations: 37.7 kB / 355.2 MB, free: 5.406 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004504/0.3535, allocations: 0.5681 MB / 355.8 MB, free: 4.828 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001243/0.3537, allocations: 161.7 kB / 356 MB, free: 4.668 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002056/0.3539, allocations: 138.4 kB / 356.1 MB, free: 4.523 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001801/0.3541, allocations: 334 kB / 356.4 MB, free: 4.191 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003489/0.3544, allocations: 169.9 kB / 356.6 MB, free: 4.027 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005281/0.355, allocations: 475.6 kB / 357 MB, free: 3.426 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008885/0.3559, allocations: 0.6719 MB / 357.7 MB, free: 2.621 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.899e-06/0.3559, allocations: 4 kB / 357.7 MB, free: 2.617 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001299/0.3572, allocations: 0.7827 MB / 358.5 MB, free: 1.82 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.151e-05/0.3572, allocations: 12 kB / 358.5 MB, free: 1.809 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.468e-05/0.3572, allocations: 15.92 kB / 358.5 MB, free: 1.793 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002666/0.3575, allocations: 85.86 kB / 358.6 MB, free: 1.703 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005094/0.358, allocations: 159.7 kB / 358.8 MB, free: 1.547 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002512/0.3606, allocations: 3.153 MB / 361.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005721/0.3612, allocations: 39.95 kB / 362 MB, free: 14.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.071e-05/0.3612, allocations: 36 kB / 362 MB, free: 14.04 MB / 302.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 (85): * Single equations (assignments): 83 * Array equations: 0 * Algorithm blocks: 0 * 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,5,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0004663/0.3617, allocations: 261.5 kB / 362.3 MB, free: 13.78 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000135/0.3618, allocations: 90.84 kB / 362.3 MB, free: 13.69 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001005/0.3629, allocations: 0.4991 MB / 362.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.113e-06/0.3629, allocations: 4 kB / 362.8 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.059e-06/0.3629, allocations: 4 kB / 362.9 MB, free: 13.17 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.444e-06/0.3629, allocations: 3.984 kB / 362.9 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002099/0.365, allocations: 1.481 MB / 364.3 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.591e-06/0.365, allocations: 4 kB / 364.3 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003188/0.3654, allocations: 67.91 kB / 364.4 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001935/0.3656, allocations: 73.89 kB / 364.5 MB, free: 11.45 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.214e-05/0.3656, allocations: 12.05 kB / 364.5 MB, free: 11.44 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002263/0.3679, allocations: 3.126 MB / 367.6 MB, free: 8.031 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.255e-06/0.3679, allocations: 7.969 kB / 367.6 MB, free: 8.023 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001288/0.3692, allocations: 0.7932 MB / 368.4 MB, free: 7.184 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002753/0.3695, allocations: 192.1 kB / 368.6 MB, free: 6.977 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000111/0.3696, allocations: 19.92 kB / 368.6 MB, free: 6.957 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004243/0.37, allocations: 23.98 kB / 368.6 MB, free: 6.934 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001053/0.3701, allocations: 39.89 kB / 368.7 MB, free: 6.895 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.515e-05/0.3702, allocations: 16 kB / 368.7 MB, free: 6.879 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0007455/0.3709, allocations: 0.5771 MB / 369.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3709, allocations: 0 / 369.3 MB, free: 6.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0008455/0.3718, allocations: 204 kB / 369.5 MB, free: 6.105 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 (39): * Single equations (assignments): 37 * Array equations: 0 * Algorithm blocks: 0 * 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,5,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.000241/0.372, allocations: 131.1 kB / 369.6 MB, free: 5.965 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001327/0.3734, allocations: 0.7243 MB / 370.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.3734, allocations: 0 / 370.3 MB, free: 5.215 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006564/0.374, allocations: 446.5 kB / 370.8 MB, free: 4.754 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.3752, allocations: 239.2 kB / 371 MB, free: 4.523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002839/0.3781, allocations: 1.75 MB / 372.8 MB, free: 2.723 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005584/0.3786, allocations: 1.013 MB / 373.8 MB, free: 1.684 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004133/0.3791, allocations: 111.3 kB / 373.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000123/0.3792, allocations: 55.44 kB / 373.9 MB, free: 1.516 MB / 302.1 MB Notification: Performance of SimCode: time 7.32e-07/0.3792, allocations: 4 kB / 373.9 MB, free: 1.512 MB / 302.1 MB Notification: Performance of Templates: time 0.02118/0.4004, allocations: 10.69 MB / 384.6 MB, free: 6.805 MB / 318.1 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.pipe 2>&1)