Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.2_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.2.2_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.2.2_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.001151/0.001151, allocations: 92.41 kB / 16.3 MB, free: 5.996 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.001348/0.001348, allocations: 184.4 kB / 17.2 MB, free: 5.91 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.731/1.731, allocations: 205.4 MB / 223.4 MB, free: 5.516 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.000499/0.0004992, allocations: 8 kB / 280.1 MB, free: 12.84 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3712/0.3718, allocations: 47.59 MB / 327.7 MB, free: 1.422 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary): time 0.011/0.3828, allocations: 9.28 MB / 337 MB, free: 10.21 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.007486/0.3904, allocations: 3.137 MB / 340.1 MB, free: 7.07 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002174/0.3926, allocations: 39.88 kB / 340.2 MB, free: 7.031 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001918/0.3945, allocations: 0.509 MB / 340.7 MB, free: 6.52 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002752/0.3973, allocations: 0.7128 MB / 341.4 MB, free: 5.805 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009292/0.3982, allocations: 243.7 kB / 341.6 MB, free: 5.566 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.003299/0.4016, allocations: 1.553 MB / 343.2 MB, free: 4.008 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001093/0.4027, allocations: 0.6791 MB / 343.9 MB, free: 3.309 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001217/0.4039, allocations: 0.6342 MB / 344.5 MB, free: 2.672 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001256/0.4052, allocations: 0.7193 MB / 345.2 MB, free: 1.949 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001731/0.4053, allocations: 96 kB / 345.3 MB, free: 1.855 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004305/0.4058, allocations: 136 kB / 345.4 MB, free: 1.723 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002624/0.4061, allocations: 270.8 kB / 345.7 MB, free: 1.457 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005502/0.4066, allocations: 388.8 kB / 346.1 MB, free: 1.07 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002/0.4086, allocations: 2.049 MB / 348.1 MB, free: 15.02 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.4086, allocations: 4 kB / 348.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.264e-06/0.4086, allocations: 0 / 348.1 MB, free: 15.01 MB / 286.1 MB Notification: Performance of Transformations before backend: time 3.364e-05/0.4087, allocations: 0 / 348.1 MB, free: 15.01 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.003214/0.4119, allocations: 1.748 MB / 349.9 MB, free: 13.2 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.998e-05/0.412, allocations: 8.031 kB / 349.9 MB, free: 13.19 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007412/0.4127, allocations: 245.6 kB / 350.1 MB, free: 12.95 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001732/0.4145, allocations: 1.016 MB / 351.1 MB, free: 11.89 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001126/0.4146, allocations: 115.1 kB / 351.3 MB, free: 11.78 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002001/0.4148, allocations: 159.9 kB / 351.4 MB, free: 11.62 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002627/0.4174, allocations: 1.472 MB / 352.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.391e-05/0.4175, allocations: 4 kB / 352.9 MB, free: 10.07 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001197/0.4176, allocations: 64 kB / 353 MB, free: 10.01 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.269e-05/0.4177, allocations: 40 kB / 353 MB, free: 9.969 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001898/0.4196, allocations: 0.9707 MB / 354 MB, free: 8.992 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008923/0.4285, allocations: 6.52 MB / 360.5 MB, free: 2.117 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008091/0.4293, allocations: 404.2 kB / 360.9 MB, free: 1.715 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.922e-05/0.4294, allocations: 8.422 kB / 360.9 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0006574/0.4301, allocations: 276.8 kB / 361.2 MB, free: 1.414 MB / 286.1 MB Notification: Performance of pre-optimization done (n=50): time 4.138e-06/0.4301, allocations: 0 / 361.2 MB, free: 1.414 MB / 286.1 MB Notification: Performance of matching and sorting (n=56): time 0.003376/0.4335, allocations: 1.778 MB / 362.9 MB, free: 15.54 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/0.4336, allocations: 166.7 kB / 363.1 MB, free: 15.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001533/0.4352, allocations: 1.183 MB / 364.3 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.293e-05/0.4352, allocations: 41.64 kB / 364.3 MB, free: 14.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006844/0.4359, allocations: 0.8712 MB / 365.2 MB, free: 13.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001693/0.4361, allocations: 209.1 kB / 365.4 MB, free: 13 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.689e-05/0.4361, allocations: 20 kB / 365.4 MB, free: 12.98 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001698/0.4363, allocations: 353.9 kB / 365.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004142/0.4367, allocations: 230.5 kB / 366 MB, free: 12.41 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008573/0.4376, allocations: 0.8034 MB / 366.8 MB, free: 11.33 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006102/0.4382, allocations: 395.6 kB / 367.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.882e-06/0.4382, allocations: 4 kB / 367.2 MB, free: 10.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=149) (initialization): time 0.001833/0.4401, allocations: 1.173 MB / 368.4 MB, free: 9.738 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.101e-05/0.4401, allocations: 37.7 kB / 368.4 MB, free: 9.695 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.908e-05/0.4402, allocations: 23.98 kB / 368.4 MB, free: 9.672 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002953/0.4405, allocations: 74.19 kB / 368.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008254/0.4413, allocations: 271.6 kB / 368.8 MB, free: 9.328 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002535/0.4439, allocations: 2.583 MB / 371.3 MB, free: 6.477 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001051/0.4449, allocations: 79.88 kB / 371.4 MB, free: 6.398 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.249e-05/0.4451, allocations: 64 kB / 371.5 MB, free: 6.336 MB / 302.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 ($whenCondition1,$PRE.pulse.T_start,pulse.T_start,$PRE.pulse.count,pulse.count) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007503/0.4458, allocations: 357.3 kB / 371.8 MB, free: 5.977 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.446, allocations: 130.4 kB / 372 MB, free: 5.848 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001007/0.447, allocations: 0.5568 MB / 372.5 MB, free: 5.285 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.428e-06/0.447, allocations: 19.92 kB / 372.5 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.226e-06/0.447, allocations: 3.938 kB / 372.5 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.624e-06/0.447, allocations: 3.984 kB / 372.5 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002975/0.45, allocations: 1.818 MB / 374.4 MB, free: 3.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.614e-06/0.45, allocations: 4 kB / 374.4 MB, free: 3.316 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004119/0.4504, allocations: 103.9 kB / 374.5 MB, free: 3.215 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001259/0.4506, allocations: 46.14 kB / 374.5 MB, free: 3.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.543e-05/0.4506, allocations: 16 kB / 374.5 MB, free: 3.148 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001909/0.4525, allocations: 2.56 MB / 377.1 MB, free: 332 kB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.871e-06/0.4526, allocations: 7.938 kB / 377.1 MB, free: 324 kB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001494/0.4541, allocations: 1.124 MB / 378.2 MB, free: 15.01 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003307/0.4544, allocations: 243.5 kB / 378.4 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001296/0.4545, allocations: 15.98 kB / 378.5 MB, free: 14.74 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000458/0.455, allocations: 36.11 kB / 378.5 MB, free: 14.7 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001023/0.4551, allocations: 51.88 kB / 378.5 MB, free: 14.65 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.151e-05/0.4552, allocations: 27.94 kB / 378.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001104/0.4563, allocations: 0.7758 MB / 379.4 MB, free: 13.85 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.71e-07/0.4563, allocations: 0 / 379.4 MB, free: 13.85 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001104/0.4574, allocations: 304 kB / 379.6 MB, free: 13.55 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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 (linear and non-linear blocks): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 1,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002833/0.4577, allocations: 131.1 kB / 379.8 MB, free: 13.41 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001518/0.4592, allocations: 0.9292 MB / 380.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.591e-06/0.4592, allocations: 4 kB / 380.7 MB, free: 12.45 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0006643/0.4599, allocations: 478 kB / 381.2 MB, free: 11.95 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001252/0.4612, allocations: 309.1 kB / 381.5 MB, free: 11.65 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004879/0.4661, allocations: 3.058 MB / 384.5 MB, free: 8.512 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009268/0.467, allocations: 1.216 MB / 385.8 MB, free: 7.266 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006579/0.4677, allocations: 175.1 kB / 385.9 MB, free: 7.09 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001517/0.4678, allocations: 79.44 kB / 386 MB, free: 7.012 MB / 318.1 MB Notification: Performance of SimCode: time 4.61e-07/0.4678, allocations: 0 / 386 MB, free: 7.012 MB / 318.1 MB Notification: Performance of Templates: time 0.02805/0.4959, allocations: 12.93 MB / 398.9 MB, free: 10.06 MB / 334.1 MB make -j1 -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile Environment - environmentSimulation: (rm -f Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1) Environment - environmentSimulation: