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.001701/0.001702, allocations: 111.3 kB / 15.23 MB, free: 0.6602 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.002297/0.002297, allocations: 194.9 kB / 16.14 MB, free: 6.66 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.811/1.811, allocations: 205.1 MB / 222 MB, free: 4.777 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.001162/0.001162, allocations: 55.92 kB / 278.1 MB, free: 12.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2846/0.2858, allocations: 46.62 MB / 324.7 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01185/0.2977, allocations: 8.147 MB / 332.8 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007125/0.3049, allocations: 2.7 MB / 335.5 MB, free: 9.238 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002652/0.3077, allocations: 23.25 kB / 335.5 MB, free: 9.234 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002952/0.3107, allocations: 0.4935 MB / 336 MB, free: 8.762 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003709/0.3145, allocations: 421.1 kB / 336.5 MB, free: 8.348 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001537/0.316, allocations: 227.8 kB / 336.7 MB, free: 8.125 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003377/0.3194, allocations: 1.416 MB / 338.1 MB, free: 6.703 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001192/0.3206, allocations: 0.5045 MB / 338.6 MB, free: 6.176 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001436/0.3221, allocations: 0.5094 MB / 339.1 MB, free: 5.664 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001569/0.3237, allocations: 0.5831 MB / 339.7 MB, free: 5.078 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004337/0.3241, allocations: 84 kB / 339.8 MB, free: 4.996 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007646/0.3249, allocations: 128 kB / 339.9 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003327/0.3252, allocations: 230.9 kB / 340.1 MB, free: 4.645 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001405/0.3266, allocations: 0.6257 MB / 340.7 MB, free: 4.016 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002404/0.3291, allocations: 1.682 MB / 342.4 MB, free: 2.328 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.863e-06/0.3291, allocations: 0 / 342.4 MB, free: 2.328 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3291, allocations: 0 / 342.4 MB, free: 2.328 MB / 270.1 MB Notification: Performance of Transformations before backend: time 8.347e-05/0.3292, allocations: 0 / 342.4 MB, free: 2.328 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.003481/0.3327, allocations: 1.488 MB / 343.9 MB, free: 0.7852 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.056e-05/0.3327, allocations: 8.031 kB / 343.9 MB, free: 0.7773 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007109/0.3334, allocations: 187.3 kB / 344.1 MB, free: 0.5938 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001389/0.3348, allocations: 0.7387 MB / 344.8 MB, free: 15.81 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.408e-05/0.3349, allocations: 85.92 kB / 344.9 MB, free: 15.73 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001906/0.3351, allocations: 99.91 kB / 345 MB, free: 15.63 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001847/0.337, allocations: 0.9308 MB / 346 MB, free: 14.67 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.141e-05/0.337, allocations: 11.94 kB / 346 MB, free: 14.66 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.169e-05/0.3371, allocations: 44 kB / 346 MB, free: 14.61 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.657e-05/0.3372, allocations: 28 kB / 346 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001252/0.3384, allocations: 0.6481 MB / 346.7 MB, free: 13.94 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006033/0.3445, allocations: 3.957 MB / 350.6 MB, free: 9.758 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007537/0.3453, allocations: 456.3 kB / 351.1 MB, free: 9.285 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005893/0.3459, allocations: 264.7 kB / 351.4 MB, free: 9.023 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.524e-05/0.3459, allocations: 4 kB / 351.4 MB, free: 9.02 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.322e-05/0.346, allocations: 42.39 kB / 351.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.865e-06/0.346, allocations: 0 / 351.4 MB, free: 8.973 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003241/0.3492, allocations: 1.548 MB / 352.9 MB, free: 7.332 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.843e-05/0.3493, allocations: 85.11 kB / 353 MB, free: 7.23 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001265/0.3506, allocations: 0.8333 MB / 353.9 MB, free: 6.387 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.133e-05/0.3506, allocations: 29.7 kB / 353.9 MB, free: 6.352 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004203/0.3511, allocations: 0.5643 MB / 354.5 MB, free: 5.777 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001221/0.3512, allocations: 165.6 kB / 354.6 MB, free: 5.613 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001874/0.3514, allocations: 142.5 kB / 354.8 MB, free: 5.465 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001395/0.3515, allocations: 334 kB / 355.1 MB, free: 5.133 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003465/0.3519, allocations: 169.9 kB / 355.2 MB, free: 4.969 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006226/0.3525, allocations: 463.6 kB / 355.7 MB, free: 4.383 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001013/0.3536, allocations: 0.6836 MB / 356.4 MB, free: 3.566 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.613e-06/0.3536, allocations: 4 kB / 356.4 MB, free: 3.562 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001347/0.3549, allocations: 0.7825 MB / 357.2 MB, free: 2.766 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.355, allocations: 12 kB / 357.2 MB, free: 2.754 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.444e-05/0.355, allocations: 8.312 kB / 357.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002892/0.3553, allocations: 85.67 kB / 357.3 MB, free: 2.656 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005655/0.3559, allocations: 159.7 kB / 357.4 MB, free: 2.5 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002954/0.3588, allocations: 2.88 MB / 360.3 MB, free: 15.36 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007144/0.3596, allocations: 35.89 kB / 360.3 MB, free: 15.32 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.734e-05/0.3596, allocations: 36.06 kB / 360.4 MB, free: 15.29 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.0005226/0.3601, allocations: 265.7 kB / 360.6 MB, free: 15.02 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001992/0.3603, allocations: 86.97 kB / 360.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001031/0.3614, allocations: 0.4991 MB / 361.2 MB, free: 14.42 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.3614, allocations: 4 kB / 361.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.557e-06/0.3614, allocations: 0 / 361.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.271e-06/0.3614, allocations: 3.984 kB / 361.2 MB, free: 14.41 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0023/0.3637, allocations: 1.469 MB / 362.7 MB, free: 12.86 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.3637, allocations: 7.938 kB / 362.7 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003336/0.3641, allocations: 75.89 kB / 362.8 MB, free: 12.77 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002393/0.3643, allocations: 77.83 kB / 362.9 MB, free: 12.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.355e-05/0.3644, allocations: 12 kB / 362.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002671/0.3671, allocations: 2.856 MB / 365.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.046e-06/0.3671, allocations: 0 / 365.7 MB, free: 9.555 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001546/0.3686, allocations: 0.7972 MB / 366.5 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003735/0.369, allocations: 203.9 kB / 366.7 MB, free: 8.492 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.3691, allocations: 15.94 kB / 366.7 MB, free: 8.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004686/0.3696, allocations: 27.97 kB / 366.8 MB, free: 8.449 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001167/0.3697, allocations: 43.83 kB / 366.8 MB, free: 8.406 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.465e-05/0.3698, allocations: 8 kB / 366.8 MB, free: 8.398 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0008799/0.3707, allocations: 0.5771 MB / 367.4 MB, free: 7.824 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.3707, allocations: 4 kB / 367.4 MB, free: 7.82 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0009304/0.3716, allocations: 204 kB / 367.6 MB, free: 7.621 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.0002788/0.3719, allocations: 123 kB / 367.7 MB, free: 7.488 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001357/0.3733, allocations: 0.7093 MB / 368.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.747e-06/0.3733, allocations: 0 / 368.4 MB, free: 6.754 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007858/0.3741, allocations: 450 kB / 368.9 MB, free: 6.289 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001322/0.3754, allocations: 211.4 kB / 369.1 MB, free: 6.086 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00381/0.3792, allocations: 2.182 MB / 371.3 MB, free: 3.855 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007076/0.38, allocations: 1.005 MB / 372.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005195/0.3805, allocations: 111.3 kB / 372.4 MB, free: 2.711 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002321/0.3807, allocations: 55.42 kB / 372.4 MB, free: 2.656 MB / 302.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3807, allocations: 4 kB / 372.4 MB, free: 2.652 MB / 302.1 MB Notification: Performance of Templates: time 0.02273/0.4035, allocations: 10.17 MB / 382.6 MB, free: 8.465 MB / 318.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase.makefile (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)