Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.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.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=40000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001502/0.001502, allocations: 103.4 kB / 15.33 MB, free: 0.5078 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.001835/0.001835, allocations: 190.9 kB / 16.25 MB, free: 6.617 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.729/1.729, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.001336/0.001336, allocations: 47.92 kB / 278.2 MB, free: 12.67 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3451/0.3465, allocations: 46.63 MB / 324.9 MB, free: 1.938 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.013/0.3596, allocations: 11.59 MB / 336.4 MB, free: 8.457 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.008162/0.3678, allocations: 3.188 MB / 339.6 MB, free: 5.258 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002544/0.3704, allocations: 35.94 kB / 339.7 MB, free: 5.223 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002434/0.3729, allocations: 0.5633 MB / 340.2 MB, free: 4.656 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004262/0.3772, allocations: 0.5779 MB / 340.8 MB, free: 4.074 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001302/0.3785, allocations: 355.7 kB / 341.2 MB, free: 3.727 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003373/0.3819, allocations: 2.23 MB / 343.4 MB, free: 1.484 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001486/0.3834, allocations: 0.9849 MB / 344.4 MB, free: 468 kB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001468/0.3849, allocations: 0.8444 MB / 345.2 MB, free: 15.61 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001161/0.386, allocations: 0.9139 MB / 346.1 MB, free: 14.69 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002981/0.3863, allocations: 216 kB / 346.3 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004883/0.3868, allocations: 256 kB / 346.6 MB, free: 14.23 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003304/0.3872, allocations: 434.4 kB / 347 MB, free: 13.8 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001044/0.3882, allocations: 1.019 MB / 348 MB, free: 12.78 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002727/0.391, allocations: 2.64 MB / 350.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.689e-06/0.391, allocations: 3.938 kB / 350.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.144e-06/0.391, allocations: 0 / 350.7 MB, free: 10.13 MB / 286.1 MB Notification: Performance of Transformations before backend: time 4.476e-05/0.391, allocations: 0 / 350.7 MB, free: 10.13 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 392 * Number of variables: 392 Notification: Performance of Generate backend data structure: time 0.003448/0.3945, allocations: 2.064 MB / 352.7 MB, free: 8 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.735e-05/0.3945, allocations: 8.031 kB / 352.8 MB, free: 7.992 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007383/0.3953, allocations: 258.5 kB / 353 MB, free: 7.738 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001401/0.3967, allocations: 1.032 MB / 354 MB, free: 6.664 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.448e-05/0.3968, allocations: 111.5 kB / 354.1 MB, free: 6.555 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001879/0.397, allocations: 159.8 kB / 354.3 MB, free: 6.398 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002326/0.3993, allocations: 1.487 MB / 355.8 MB, free: 4.836 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.706e-05/0.3994, allocations: 11.91 kB / 355.8 MB, free: 4.824 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001269/0.3995, allocations: 64 kB / 355.9 MB, free: 4.762 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.776e-05/0.3996, allocations: 36 kB / 355.9 MB, free: 4.727 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001695/0.4013, allocations: 0.9824 MB / 356.9 MB, free: 3.738 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007559/0.4088, allocations: 6.57 MB / 363.5 MB, free: 12.81 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007941/0.4097, allocations: 396.2 kB / 363.8 MB, free: 12.42 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004023/0.4101, allocations: 218.1 kB / 364.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.74e-05/0.4101, allocations: 8.438 kB / 364.1 MB, free: 12.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005826/0.4107, allocations: 288.6 kB / 364.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of pre-optimization done (n=50): time 2.414e-06/0.4107, allocations: 0 / 364.3 MB, free: 11.89 MB / 302.1 MB Notification: Performance of matching and sorting (n=56): time 0.003103/0.4138, allocations: 1.75 MB / 366.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.336e-05/0.4139, allocations: 170.7 kB / 366.3 MB, free: 9.84 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001534/0.4155, allocations: 1.273 MB / 367.5 MB, free: 8.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.806e-05/0.4155, allocations: 37.7 kB / 367.6 MB, free: 8.508 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006215/0.4162, allocations: 0.8751 MB / 368.4 MB, free: 7.621 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001468/0.4163, allocations: 205.2 kB / 368.6 MB, free: 7.418 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002667/0.4166, allocations: 214.7 kB / 368.9 MB, free: 7.199 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.4167, allocations: 357.9 kB / 369.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004298/0.4172, allocations: 226.5 kB / 369.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008383/0.418, allocations: 0.8073 MB / 370.2 MB, free: 5.539 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001342/0.4194, allocations: 1.118 MB / 371.3 MB, free: 4.152 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.284e-06/0.4194, allocations: 4 kB / 371.4 MB, free: 4.148 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001896/0.4213, allocations: 1.169 MB / 372.5 MB, free: 2.957 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.957e-05/0.4214, allocations: 45.69 kB / 372.6 MB, free: 2.906 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.1e-05/0.4214, allocations: 23.94 kB / 372.6 MB, free: 2.883 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00028/0.4217, allocations: 66.05 kB / 372.7 MB, free: 2.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007328/0.4224, allocations: 267.6 kB / 372.9 MB, free: 2.551 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001923/0.4244, allocations: 2.773 MB / 375.7 MB, free: 15.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009324/0.4253, allocations: 67.98 kB / 375.8 MB, free: 15.43 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.9e-05/0.4254, allocations: 63.98 kB / 375.8 MB, free: 15.37 MB / 318.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 86 * Number of states: 0 () * Number of discrete variables: 5 (pulse.count,$PRE.pulse.count,pulse.T_start,$PRE.pulse.T_start,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 143 * Array equations: 0 * Algorithm blocks: 1 * 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,1,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000561/0.4259, allocations: 353.3 kB / 376.2 MB, free: 15.02 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001517/0.4261, allocations: 130.4 kB / 376.3 MB, free: 14.89 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000984/0.4271, allocations: 0.5567 MB / 376.8 MB, free: 14.32 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.22e-06/0.4271, allocations: 4 kB / 376.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.31e-06/0.4271, allocations: 4 kB / 376.9 MB, free: 14.31 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.993e-06/0.4271, allocations: 7.984 kB / 376.9 MB, free: 14.3 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002647/0.4298, allocations: 1.873 MB / 378.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.023e-06/0.4298, allocations: 4 kB / 378.7 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004173/0.4302, allocations: 103.8 kB / 378.8 MB, free: 12.21 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001525/0.4304, allocations: 54.16 kB / 378.9 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.286e-05/0.4304, allocations: 12 kB / 378.9 MB, free: 12.14 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001947/0.4324, allocations: 2.745 MB / 381.7 MB, free: 9.109 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.228e-06/0.4324, allocations: 4 kB / 381.7 MB, free: 9.105 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001443/0.4339, allocations: 0.9301 MB / 382.6 MB, free: 8.105 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000404/0.4343, allocations: 255.5 kB / 382.8 MB, free: 7.836 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001346/0.4344, allocations: 16 kB / 382.8 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005095/0.4349, allocations: 35.91 kB / 382.9 MB, free: 7.785 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001193/0.4351, allocations: 59.81 kB / 382.9 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.155e-05/0.4351, allocations: 12 kB / 383 MB, free: 7.715 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001148/0.4363, allocations: 0.85 MB / 383.8 MB, free: 6.863 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4363, allocations: 0 / 383.8 MB, free: 6.863 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001204/0.4375, allocations: 300 kB / 384.1 MB, free: 6.57 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadInertia1.phi,dcpm2.inertiaRotor.w,loadInertia2.phi) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (54): * Single equations (assignments): 50 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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,1,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.0003041/0.4378, allocations: 147.2 kB / 384.2 MB, free: 6.418 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001597/0.4394, allocations: 0.9407 MB / 385.2 MB, free: 5.441 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 2.735e-06/0.4394, allocations: 0 / 385.2 MB, free: 5.441 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007032/0.4401, allocations: 474.3 kB / 385.6 MB, free: 4.953 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.4417, allocations: 336.8 kB / 386 MB, free: 4.621 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004622/0.4463, allocations: 3.145 MB / 389.1 MB, free: 1.395 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008094/0.4471, allocations: 1.178 MB / 390.3 MB, free: 184 kB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0007748/0.4479, allocations: 167.3 kB / 390.5 MB, free: 12 kB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001937/0.4481, allocations: 83.48 kB / 390.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of SimCode: time 1.132e-06/0.4481, allocations: 0 / 390.5 MB, free: 15.93 MB / 334.1 MB Notification: Performance of Templates: time 0.02915/0.4773, allocations: 14.89 MB / 405.4 MB, free: 1.023 MB / 334.1 MB make -j1 -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)