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.001596/0.001596, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.00237/0.00237, allocations: 189.1 kB / 16.25 MB, free: 6.625 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.111/2.111, allocations: 205.1 MB / 222.1 MB, free: 4.715 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.001431/0.001431, allocations: 47.92 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3339/0.3353, allocations: 46.63 MB / 324.9 MB, free: 1.934 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCSE_SinglePhase): time 0.01373/0.3491, allocations: 8.142 MB / 333 MB, free: 11.48 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00742/0.3566, allocations: 2.691 MB / 335.7 MB, free: 9.238 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002004/0.3587, allocations: 27.88 kB / 335.7 MB, free: 9.211 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001996/0.3608, allocations: 0.5058 MB / 336.2 MB, free: 8.703 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002262/0.363, allocations: 413.1 kB / 336.6 MB, free: 8.297 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006495/0.3637, allocations: 231.8 kB / 336.9 MB, free: 8.07 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.002006/0.3657, allocations: 1.498 MB / 338.3 MB, free: 6.566 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008911/0.3666, allocations: 0.5847 MB / 338.9 MB, free: 5.961 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0008532/0.3675, allocations: 0.5563 MB / 339.5 MB, free: 5.402 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006396/0.3681, allocations: 0.6183 MB / 340.1 MB, free: 4.781 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001747/0.3683, allocations: 140 kB / 340.2 MB, free: 4.645 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000408/0.3687, allocations: 184 kB / 340.4 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002401/0.369, allocations: 294.9 kB / 340.7 MB, free: 4.176 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006638/0.3697, allocations: 0.6687 MB / 341.4 MB, free: 3.504 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001948/0.3716, allocations: 1.725 MB / 343.1 MB, free: 1.773 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.496e-06/0.3716, allocations: 0 / 343.1 MB, free: 1.773 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.966e-06/0.3717, allocations: 3.938 kB / 343.1 MB, free: 1.77 MB / 270.1 MB Notification: Performance of Transformations before backend: time 2.375e-05/0.3717, allocations: 0 / 343.1 MB, free: 1.77 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.002579/0.3743, allocations: 1.476 MB / 344.6 MB, free: 244 kB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.094e-05/0.3743, allocations: 16.03 kB / 344.6 MB, free: 228 kB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006615/0.375, allocations: 187.3 kB / 344.8 MB, free: 40 kB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001153/0.3762, allocations: 0.7425 MB / 345.5 MB, free: 15.25 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.189e-05/0.3762, allocations: 77.98 kB / 345.6 MB, free: 15.18 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001352/0.3764, allocations: 103.9 kB / 345.7 MB, free: 15.08 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001638/0.378, allocations: 0.9425 MB / 346.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.084e-05/0.3781, allocations: 0 / 346.6 MB, free: 14.11 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.23e-05/0.3782, allocations: 44 kB / 346.7 MB, free: 14.06 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.192e-05/0.3782, allocations: 24 kB / 346.7 MB, free: 14.04 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001192/0.3794, allocations: 0.6481 MB / 347.4 MB, free: 13.39 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005318/0.3847, allocations: 3.969 MB / 351.3 MB, free: 9.195 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007468/0.3855, allocations: 435.9 kB / 351.8 MB, free: 8.742 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006013/0.3861, allocations: 264.7 kB / 352 MB, free: 8.48 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.224e-05/0.3862, allocations: 19.92 kB / 352 MB, free: 8.461 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.107e-05/0.3862, allocations: 34.56 kB / 352.1 MB, free: 8.418 MB / 286.1 MB Notification: Performance of pre-optimization done (n=41): time 2.885e-06/0.3862, allocations: 0 / 352.1 MB, free: 8.418 MB / 286.1 MB Notification: Performance of matching and sorting (n=45): time 0.003388/0.3896, allocations: 1.552 MB / 353.6 MB, free: 6.773 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.075e-05/0.3897, allocations: 81.11 kB / 353.7 MB, free: 6.676 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001184/0.3909, allocations: 0.8333 MB / 354.5 MB, free: 5.836 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 3.964e-05/0.391, allocations: 33.7 kB / 354.6 MB, free: 5.797 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003783/0.3913, allocations: 0.5643 MB / 355.1 MB, free: 5.223 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001288/0.3915, allocations: 165.6 kB / 355.3 MB, free: 5.059 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001785/0.3917, allocations: 138.5 kB / 355.4 MB, free: 4.914 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001491/0.3918, allocations: 334 kB / 355.8 MB, free: 4.582 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003413/0.3922, allocations: 173.9 kB / 355.9 MB, free: 4.414 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005598/0.3927, allocations: 467.6 kB / 356.4 MB, free: 3.824 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009231/0.3937, allocations: 0.6836 MB / 357.1 MB, free: 3.008 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.64e-06/0.3937, allocations: 4 kB / 357.1 MB, free: 3.004 MB / 286.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001373/0.3951, allocations: 0.7787 MB / 357.8 MB, free: 2.211 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.525e-05/0.3951, allocations: 8 kB / 357.9 MB, free: 2.203 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.714e-05/0.3951, allocations: 15.98 kB / 357.9 MB, free: 2.188 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003041/0.3954, allocations: 89.86 kB / 358 MB, free: 2.094 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004867/0.3959, allocations: 159.7 kB / 358.1 MB, free: 1.938 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002826/0.3988, allocations: 3.157 MB / 361.3 MB, free: 14.5 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007467/0.3995, allocations: 35.89 kB / 361.3 MB, free: 14.47 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.807e-05/0.3996, allocations: 36 kB / 361.3 MB, free: 14.43 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.0005682/0.4002, allocations: 261.6 kB / 361.6 MB, free: 14.17 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001611/0.4004, allocations: 94.84 kB / 361.7 MB, free: 14.07 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001074/0.4014, allocations: 0.4991 MB / 362.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.785e-06/0.4014, allocations: 4 kB / 362.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.905e-06/0.4015, allocations: 0 / 362.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.069e-06/0.4015, allocations: 0 / 362.2 MB, free: 13.56 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002555/0.404, allocations: 1.477 MB / 363.7 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.404, allocations: 224 / 363.7 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003148/0.4044, allocations: 75.91 kB / 363.7 MB, free: 11.92 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002233/0.4046, allocations: 69.67 kB / 363.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.865e-05/0.4046, allocations: 16 kB / 363.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002526/0.4072, allocations: 3.122 MB / 366.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.883e-06/0.4072, allocations: 0 / 366.9 MB, free: 8.43 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001446/0.4087, allocations: 0.801 MB / 367.7 MB, free: 7.582 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004125/0.4091, allocations: 200.1 kB / 367.9 MB, free: 7.367 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.4092, allocations: 15.94 kB / 368 MB, free: 7.352 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/0.4097, allocations: 31.97 kB / 368 MB, free: 7.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001219/0.4098, allocations: 35.89 kB / 368 MB, free: 7.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.978e-05/0.4098, allocations: 12 kB / 368 MB, free: 7.273 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.001097/0.4109, allocations: 0.5693 MB / 368.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4109, allocations: 0 / 368.6 MB, free: 6.707 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001206/0.4121, allocations: 212 kB / 368.8 MB, free: 6.5 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.0003393/0.4125, allocations: 123.1 kB / 368.9 MB, free: 6.367 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001492/0.414, allocations: 0.7249 MB / 369.7 MB, free: 5.617 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.445e-05/0.414, allocations: 4 kB / 369.7 MB, free: 5.613 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007021/0.4147, allocations: 445.9 kB / 370.1 MB, free: 5.152 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00117/0.4159, allocations: 227.3 kB / 370.3 MB, free: 4.934 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004051/0.42, allocations: 2.176 MB / 372.5 MB, free: 2.707 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009942/0.421, allocations: 1.009 MB / 373.5 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0006214/0.4217, allocations: 111.3 kB / 373.6 MB, free: 1.559 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001621/0.4218, allocations: 55.44 kB / 373.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of SimCode: time 2.655e-06/0.4218, allocations: 0 / 373.7 MB, free: 1.504 MB / 302.1 MB Notification: Performance of Templates: time 0.03314/0.455, allocations: 10.6 MB / 384.3 MB, free: 6.887 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)