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.0013/0.0013, allocations: 111.3 kB / 15.23 MB, free: 0.6367 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.001728/0.001729, allocations: 196.3 kB / 16.14 MB, free: 6.734 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.975/1.975, allocations: 205.1 MB / 222 MB, free: 4.766 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.001342/0.001343, allocations: 51.92 kB / 278.1 MB, free: 12.76 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2943/0.2957, allocations: 46.63 MB / 324.7 MB, free: 1.914 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01179/0.3075, allocations: 8.146 MB / 332.8 MB, free: 11.46 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.006855/0.3144, allocations: 2.7 MB / 335.5 MB, free: 9.219 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001882/0.3164, allocations: 24.5 kB / 335.6 MB, free: 9.215 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002118/0.3186, allocations: 0.4985 MB / 336.1 MB, free: 8.734 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00225/0.3208, allocations: 413.1 kB / 336.5 MB, free: 8.328 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006083/0.3214, allocations: 227.8 kB / 336.7 MB, free: 8.105 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.001989/0.3234, allocations: 1.428 MB / 338.1 MB, free: 6.672 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0007628/0.3242, allocations: 0.5007 MB / 338.6 MB, free: 6.148 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0009301/0.3252, allocations: 0.5055 MB / 339.1 MB, free: 5.641 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006649/0.3258, allocations: 0.5715 MB / 339.7 MB, free: 5.066 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001616/0.326, allocations: 88 kB / 339.8 MB, free: 4.98 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003764/0.3264, allocations: 128 kB / 339.9 MB, free: 4.855 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002305/0.3266, allocations: 230.9 kB / 340.1 MB, free: 4.629 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006438/0.3273, allocations: 0.6179 MB / 340.7 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001672/0.329, allocations: 1.697 MB / 342.4 MB, free: 2.305 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.132e-06/0.329, allocations: 0 / 342.4 MB, free: 2.305 MB / 270.1 MB Notification: Performance of FrontEnd: time 3.346e-06/0.329, allocations: 4 kB / 342.4 MB, free: 2.301 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.011e-05/0.329, allocations: 0 / 342.4 MB, free: 2.301 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.002746/0.3318, allocations: 1.472 MB / 343.9 MB, free: 0.7734 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.78e-05/0.3318, allocations: 12.03 kB / 343.9 MB, free: 0.7617 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006773/0.3325, allocations: 191.3 kB / 344.1 MB, free: 0.5742 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001168/0.3337, allocations: 0.7465 MB / 344.9 MB, free: 15.78 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.322e-05/0.3338, allocations: 70 kB / 344.9 MB, free: 15.71 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001412/0.3339, allocations: 99.91 kB / 345 MB, free: 15.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001776/0.3357, allocations: 0.9464 MB / 346 MB, free: 14.64 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.814e-05/0.3358, allocations: 7.969 kB / 346 MB, free: 14.63 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-05/0.3359, allocations: 44 kB / 346 MB, free: 14.59 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.256e-05/0.3359, allocations: 24 kB / 346 MB, free: 14.57 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00126/0.3372, allocations: 0.6519 MB / 346.7 MB, free: 13.92 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005327/0.3425, allocations: 3.957 MB / 350.7 MB, free: 9.738 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007225/0.3433, allocations: 443.9 kB / 351.1 MB, free: 9.277 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005624/0.3438, allocations: 264.7 kB / 351.3 MB, free: 9.016 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.954e-05/0.3439, allocations: 7.984 kB / 351.4 MB, free: 9.008 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.385e-05/0.3439, allocations: 42.56 kB / 351.4 MB, free: 8.957 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.124e-06/0.3439, allocations: 0 / 351.4 MB, free: 8.957 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003172/0.3471, allocations: 1.544 MB / 352.9 MB, free: 7.32 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.3472, allocations: 89.05 kB / 353 MB, free: 7.215 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001069/0.3483, allocations: 0.8333 MB / 353.9 MB, free: 6.371 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.628e-05/0.3483, allocations: 37.7 kB / 353.9 MB, free: 6.328 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000573/0.3489, allocations: 0.5681 MB / 354.5 MB, free: 5.75 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001396/0.349, allocations: 157.7 kB / 354.6 MB, free: 5.594 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000205/0.3492, allocations: 138.5 kB / 354.8 MB, free: 5.449 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001701/0.3494, allocations: 330 kB / 355.1 MB, free: 5.121 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003554/0.3498, allocations: 177.9 kB / 355.2 MB, free: 4.949 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005798/0.3504, allocations: 467.6 kB / 355.7 MB, free: 4.359 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001056/0.3514, allocations: 0.6758 MB / 356.4 MB, free: 3.551 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.818e-06/0.3515, allocations: 4 kB / 356.4 MB, free: 3.547 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001704/0.3532, allocations: 0.7865 MB / 357.2 MB, free: 2.746 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.752e-05/0.3532, allocations: 8 kB / 357.2 MB, free: 2.738 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.217e-05/0.3533, allocations: 8 kB / 357.2 MB, free: 2.73 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004185/0.3537, allocations: 97.86 kB / 357.3 MB, free: 2.629 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006187/0.3543, allocations: 159.7 kB / 357.4 MB, free: 2.473 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003175/0.3575, allocations: 2.868 MB / 360.3 MB, free: 15.34 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008633/0.3584, allocations: 43.88 kB / 360.3 MB, free: 15.3 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.275e-05/0.3585, allocations: 36 kB / 360.4 MB, free: 15.26 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.0006653/0.3591, allocations: 261.7 kB / 360.6 MB, free: 15 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001482/0.3593, allocations: 91.02 kB / 360.7 MB, free: 14.91 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001079/0.3604, allocations: 0.4913 MB / 361.2 MB, free: 14.4 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.243e-06/0.3604, allocations: 12 kB / 361.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.3604, allocations: 3.984 kB / 361.2 MB, free: 14.39 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.3604, allocations: 4 kB / 361.2 MB, free: 14.38 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002599/0.363, allocations: 1.469 MB / 362.7 MB, free: 12.83 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.452e-06/0.363, allocations: 3.938 kB / 362.7 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003303/0.3634, allocations: 84.11 kB / 362.8 MB, free: 12.74 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.000214/0.3636, allocations: 69.67 kB / 362.9 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.584e-05/0.3637, allocations: 8 kB / 362.9 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002594/0.3663, allocations: 2.861 MB / 365.7 MB, free: 9.531 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.404e-06/0.3663, allocations: 4.031 kB / 365.7 MB, free: 9.527 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001519/0.3678, allocations: 0.7971 MB / 366.5 MB, free: 8.684 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003697/0.3682, allocations: 200 kB / 366.7 MB, free: 8.469 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001501/0.3684, allocations: 15.92 kB / 366.7 MB, free: 8.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004735/0.3688, allocations: 31.98 kB / 366.8 MB, free: 8.422 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001097/0.369, allocations: 35.89 kB / 366.8 MB, free: 8.387 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.976e-05/0.369, allocations: 16 kB / 366.8 MB, free: 8.371 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000982/0.37, allocations: 0.5732 MB / 367.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.37, allocations: 0 / 367.4 MB, free: 7.801 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001118/0.3711, allocations: 208 kB / 367.6 MB, free: 7.598 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.0003107/0.3714, allocations: 123.1 kB / 367.7 MB, free: 7.465 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001568/0.373, allocations: 0.7014 MB / 368.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.392e-06/0.373, allocations: 0 / 368.4 MB, free: 6.738 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008243/0.3739, allocations: 453.8 kB / 368.9 MB, free: 6.27 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001376/0.3753, allocations: 227.4 kB / 369.1 MB, free: 6.051 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003897/0.3792, allocations: 2.162 MB / 371.2 MB, free: 3.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009908/0.3802, allocations: 1.013 MB / 372.3 MB, free: 2.801 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0005801/0.3808, allocations: 111.3 kB / 372.4 MB, free: 2.688 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001714/0.381, allocations: 59.42 kB / 372.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of SimCode: time 1.242e-06/0.381, allocations: 0 / 372.4 MB, free: 2.629 MB / 302.1 MB Notification: Performance of Templates: time 0.02459/0.4056, allocations: 10.17 MB / 382.6 MB, free: 8.445 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)