Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo) Using package Modelica with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo) Using package Complex with version 3.2.1 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary,tolerance=1e-06,outputFormat="empty",numberOfIntervals=4000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.1+maint.om/package.mo): time 0.0009323/0.0009323, allocations: 168.9 kB / 7.638 MB, free: 1.418 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.236/1.236, allocations: 170.7 MB / 178.7 MB, free: 15.63 MB / 154.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.1+maint.om/package.mo): time 0.001606/0.001606, allocations: 115.4 kB / 218 MB, free: 8.398 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 1.456e-05/1.457e-05, allocations: 0 / 262.2 MB, free: 26.39 MB / 202.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07326/0.07329, allocations: 38.77 MB / 301 MB, free: 3.633 MB / 218.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2933/0.3667, allocations: 84.08 MB / 385.1 MB, free: 0.5586 MB / 266.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002085/0.3669, allocations: 81.64 kB / 385.1 MB, free: 0.5156 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1026/0.4696, allocations: 40.24 MB / 425.4 MB, free: 14.06 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.452e-06/0.4696, allocations: 0 / 425.4 MB, free: 14.06 MB / 314.7 MB Notification: Performance of Transformations before backend: time 7.543e-05/0.4697, allocations: 36 kB / 425.4 MB, free: 14.02 MB / 314.7 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.002303/0.472, allocations: 1.554 MB / 427 MB, free: 12.41 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.164e-05/0.472, allocations: 12.03 kB / 427 MB, free: 12.4 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000734/0.4728, allocations: 253.6 kB / 427.2 MB, free: 12.15 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001795/0.4746, allocations: 1.101 MB / 428.3 MB, free: 11 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.455e-05/0.4747, allocations: 55.95 kB / 428.4 MB, free: 10.95 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001711/0.4748, allocations: 91.91 kB / 428.5 MB, free: 10.86 MB / 314.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001517/0.4764, allocations: 0.8185 MB / 429.3 MB, free: 10.04 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002079/0.4785, allocations: 1.208 MB / 430.5 MB, free: 8.758 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.767e-05/0.4785, allocations: 7.906 kB / 430.5 MB, free: 8.75 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.034e-05/0.4786, allocations: 4 kB / 430.5 MB, free: 8.746 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.914e-05/0.4786, allocations: 36 kB / 430.6 MB, free: 8.711 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007022/0.4857, allocations: 6.35 MB / 436.9 MB, free: 2.012 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005275/0.4862, allocations: 355.8 kB / 437.3 MB, free: 1.656 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002803/0.4865, allocations: 184 kB / 437.4 MB, free: 1.477 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.588e-05/0.4866, allocations: 8.438 kB / 437.4 MB, free: 1.469 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0003519/0.4869, allocations: 236.8 kB / 437.7 MB, free: 1.211 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 5.681e-06/0.4869, allocations: 0 / 437.7 MB, free: 1.211 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002238/0.4892, allocations: 1.518 MB / 439.2 MB, free: 15.62 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.847e-05/0.4893, allocations: 184.5 kB / 439.4 MB, free: 15.4 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00105/0.4903, allocations: 0.8553 MB / 440.2 MB, free: 14.53 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 3.401e-05/0.4904, allocations: 29.64 kB / 440.3 MB, free: 14.5 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006469/0.491, allocations: 0.8782 MB / 441.1 MB, free: 13.61 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001528/0.4912, allocations: 201.1 kB / 441.3 MB, free: 13.41 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.065e-05/0.4912, allocations: 7.938 kB / 441.3 MB, free: 13.4 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001616/0.4914, allocations: 345.9 kB / 441.7 MB, free: 13.05 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003094/0.4917, allocations: 190.6 kB / 441.9 MB, free: 12.87 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007298/0.4925, allocations: 0.7463 MB / 442.6 MB, free: 11.84 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004635/0.4929, allocations: 325.8 kB / 442.9 MB, free: 11.53 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.854e-06/0.493, allocations: 4 kB / 442.9 MB, free: 11.52 MB / 330.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001436/0.4944, allocations: 0.9493 MB / 443.9 MB, free: 10.56 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.768e-05/0.4945, allocations: 45.7 kB / 443.9 MB, free: 10.51 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.312e-05/0.4945, allocations: 23.94 kB / 443.9 MB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002/0.4947, allocations: 61.7 kB / 444 MB, free: 10.42 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007773/0.4955, allocations: 267.8 kB / 444.3 MB, free: 10.16 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001802/0.4973, allocations: 2.473 MB / 446.7 MB, free: 7.453 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007688/0.4981, allocations: 55.94 kB / 446.8 MB, free: 7.398 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.853e-05/0.4982, allocations: 64 kB / 446.9 MB, free: 7.336 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 87 * 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 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (148): * Single equations (assignments): 145 * 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.0001737/0.4983, allocations: 152.4 kB / 447 MB, free: 7.18 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001326/0.4985, allocations: 122.5 kB / 447.1 MB, free: 7.059 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007636/0.4993, allocations: 468.3 kB / 447.6 MB, free: 6.586 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.16e-06/0.4993, allocations: 4 kB / 447.6 MB, free: 6.582 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.769e-06/0.4993, allocations: 4 kB / 447.6 MB, free: 6.578 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.977e-06/0.4993, allocations: 3.984 kB / 447.6 MB, free: 6.574 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00215/0.5015, allocations: 1.661 MB / 449.3 MB, free: 4.809 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.26e-06/0.5015, allocations: 4 kB / 449.3 MB, free: 4.805 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004248/0.5019, allocations: 111.8 kB / 449.4 MB, free: 4.695 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001223/0.502, allocations: 42.17 kB / 449.4 MB, free: 4.648 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.068e-05/0.5021, allocations: 8 kB / 449.4 MB, free: 4.641 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001493/0.5036, allocations: 2.442 MB / 451.9 MB, free: 1.973 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.264e-06/0.5036, allocations: 16.12 kB / 451.9 MB, free: 1.957 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00106/0.5047, allocations: 1.008 MB / 452.9 MB, free: 0.8086 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002874/0.505, allocations: 235.7 kB / 453.1 MB, free: 0.5586 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001211/0.5051, allocations: 4.125 kB / 453.1 MB, free: 0.5547 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004691/0.5056, allocations: 35.97 kB / 453.2 MB, free: 0.5195 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.89e-05/0.5057, allocations: 51.83 kB / 453.2 MB, free: 480 kB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.962e-05/0.5057, allocations: 20 kB / 453.2 MB, free: 460 kB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0007632/0.5065, allocations: 0.611 MB / 453.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.5065, allocations: 4 kB / 453.8 MB, free: 15.83 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001048/0.5075, allocations: 280 kB / 454.1 MB, free: 15.55 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 5 (dcpm1.inertiaRotor.phi,dcpm1.inertiaRotor.w,dcpm1.la.i,dcpm2.inertiaRotor.phi,dcpm2.inertiaRotor.w) * Number of discrete variables: 3 ($whenCondition1,pulse.T_start,pulse.count) * Number of discrete states: 1 (pulse.count) * 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.000448/0.508, allocations: 272.6 kB / 454.4 MB, free: 15.28 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.001159/0.5092, allocations: 0.8019 MB / 455.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 2.955e-06/0.5092, allocations: 448 / 455.2 MB, free: 14.45 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005021/0.5097, allocations: 439 kB / 455.6 MB, free: 14 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001128/0.5108, allocations: 275 kB / 455.9 MB, free: 13.73 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002975/0.5138, allocations: 1.851 MB / 457.7 MB, free: 11.8 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007563/0.5146, allocations: 1.212 MB / 458.9 MB, free: 10.55 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005832/0.5152, allocations: 158.2 kB / 459.1 MB, free: 10.39 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001484/0.5153, allocations: 79.44 kB / 459.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of SimCode: time 2.71e-07/0.5154, allocations: 0 / 459.2 MB, free: 10.32 MB / 346.7 MB Notification: Performance of Templates: time 0.1862/0.7016, allocations: 12.23 MB / 471.4 MB, free: 91.77 MB / 346.7 MB make -j1 -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.makefile (rm -f Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; mkfifo Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe >> ../files/Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.sim & ./Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_QuasiStationary.pipe 2>&1)