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.005942/0.005942, allocations: 164 kB / 15.11 MB, free: 6.039 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.1+maint.om/package.mo): time 1.24/1.24, allocations: 170.8 MB / 186.6 MB, free: 1.145 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.001617/0.001617, allocations: 107.3 kB / 226.2 MB, free: 10.11 MB / 186.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005206/0.0005208, allocations: 11.98 kB / 274.1 MB, free: 10.09 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2254/0.226, allocations: 38.76 MB / 312.9 MB, free: 38.73 MB / 250.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09962/0.3256, allocations: 84.83 MB / 397.7 MB, free: 5.668 MB / 298.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002871/0.326, allocations: 79.95 kB / 397.8 MB, free: 5.59 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2816/0.6076, allocations: 40.76 MB / 438.6 MB, free: 78.25 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.6077, allocations: 0 / 438.6 MB, free: 78.25 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.226e-05/0.6078, allocations: 30.72 kB / 438.6 MB, free: 78.25 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.002918/0.6107, allocations: 1.756 MB / 440.3 MB, free: 77.15 MB / 314.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.449e-05/0.6108, allocations: 7.812 kB / 440.4 MB, free: 77.15 MB / 314.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000727/0.6115, allocations: 261.5 kB / 440.6 MB, free: 77.05 MB / 314.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00176/0.6133, allocations: 1.097 MB / 441.7 MB, free: 76.38 MB / 314.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.127e-05/0.6134, allocations: 115.8 kB / 441.8 MB, free: 76.32 MB / 314.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001918/0.6136, allocations: 164.9 kB / 442 MB, free: 76.26 MB / 314.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002598/0.6162, allocations: 1.469 MB / 443.4 MB, free: 75.53 MB / 314.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.414e-05/0.6162, allocations: 7.625 kB / 443.5 MB, free: 75.52 MB / 314.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001067/0.6164, allocations: 64.44 kB / 443.5 MB, free: 75.48 MB / 314.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.724e-05/0.6164, allocations: 41.62 kB / 443.6 MB, free: 75.47 MB / 314.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001593/0.618, allocations: 0.978 MB / 444.5 MB, free: 75.1 MB / 314.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006402/0.6244, allocations: 6.665 MB / 451.2 MB, free: 69.57 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007018/0.6251, allocations: 421.1 kB / 451.6 MB, free: 69.36 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4e-05/0.6252, allocations: 4.375 kB / 451.6 MB, free: 69.36 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004446/0.6256, allocations: 275.3 kB / 451.9 MB, free: 69.16 MB / 314.7 MB Notification: Performance of pre-optimization done (n=50): time 2.384e-06/0.6257, allocations: 0 / 451.9 MB, free: 69.16 MB / 314.7 MB Notification: Performance of matching and sorting (n=56): time 0.002857/0.6285, allocations: 1.795 MB / 453.7 MB, free: 67.93 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.626e-05/0.6286, allocations: 166.3 kB / 453.8 MB, free: 67.74 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001319/0.6299, allocations: 1.077 MB / 454.9 MB, free: 67.05 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.773e-05/0.63, allocations: 33.7 kB / 455 MB, free: 67.01 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004753/0.6305, allocations: 0.8697 MB / 455.8 MB, free: 66.14 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001329/0.6306, allocations: 206.8 kB / 456 MB, free: 65.94 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.46e-05/0.6307, allocations: 28 kB / 456.1 MB, free: 65.91 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 8.82e-05/0.6307, allocations: 349.9 kB / 456.4 MB, free: 65.56 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003835/0.6311, allocations: 242.4 kB / 456.6 MB, free: 65.32 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005998/0.6317, allocations: 0.8034 MB / 457.4 MB, free: 64.25 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000514/0.6323, allocations: 410.8 kB / 457.8 MB, free: 63.84 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.6323, allocations: 4 kB / 457.8 MB, free: 63.84 MB / 314.7 MB Notification: Performance of matching and sorting (n=151) (initialization): time 0.001527/0.6338, allocations: 1.193 MB / 459 MB, free: 62.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 4.33e-05/0.6339, allocations: 45.83 kB / 459.1 MB, free: 62.57 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.821e-05/0.6339, allocations: 16 kB / 459.1 MB, free: 62.56 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002251/0.6341, allocations: 73.69 kB / 459.2 MB, free: 62.48 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007137/0.6349, allocations: 271.5 kB / 459.4 MB, free: 62.21 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001288/0.6362, allocations: 2.583 MB / 462 MB, free: 59.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001037/0.6372, allocations: 72.09 kB / 462.1 MB, free: 59.29 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001039/0.6373, allocations: 64 kB / 462.1 MB, free: 59.23 MB / 314.7 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 (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.0007627/0.6381, allocations: 357.8 kB / 462.5 MB, free: 58.87 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001314/0.6382, allocations: 138.2 kB / 462.6 MB, free: 58.73 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009184/0.6392, allocations: 0.5646 MB / 463.2 MB, free: 58.16 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.787e-06/0.6392, allocations: 4 kB / 463.2 MB, free: 58.15 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.6392, allocations: 0 / 463.2 MB, free: 58.15 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.354e-06/0.6392, allocations: 3.984 kB / 463.2 MB, free: 58.15 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002404/0.6416, allocations: 1.858 MB / 465.1 MB, free: 56.18 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.251e-06/0.6416, allocations: 4 kB / 465.1 MB, free: 56.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004109/0.642, allocations: 111.8 kB / 465.2 MB, free: 56.07 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001541/0.6422, allocations: 41.69 kB / 465.2 MB, free: 56.02 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.198e-05/0.6422, allocations: 16 kB / 465.2 MB, free: 56.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001183/0.6434, allocations: 2.571 MB / 467.8 MB, free: 53.18 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.558e-06/0.6435, allocations: 7.938 kB / 467.8 MB, free: 53.17 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.6447, allocations: 1.125 MB / 468.9 MB, free: 51.87 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000413/0.6451, allocations: 251.4 kB / 469.2 MB, free: 51.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001239/0.6452, allocations: 16 kB / 469.2 MB, free: 51.59 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005172/0.6458, allocations: 39.97 kB / 469.2 MB, free: 51.55 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.6459, allocations: 51.83 kB / 469.3 MB, free: 51.5 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.629e-05/0.6459, allocations: 20 kB / 469.3 MB, free: 51.48 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0009139/0.6468, allocations: 0.811 MB / 470.1 MB, free: 50.66 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.5e-07/0.6468, allocations: 0 / 470.1 MB, free: 50.66 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001244/0.6481, allocations: 339.9 kB / 470.4 MB, free: 50.33 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * 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) * 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.0004403/0.6485, allocations: 314.9 kB / 470.8 MB, free: 50.04 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001346/0.6499, allocations: 0.9366 MB / 471.7 MB, free: 49.07 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.536e-06/0.6499, allocations: 3.938 kB / 471.7 MB, free: 49.06 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005318/0.6504, allocations: 482.7 kB / 472.2 MB, free: 48.57 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001188/0.6516, allocations: 306.2 kB / 472.5 MB, free: 48.27 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003518/0.6552, allocations: 3.071 MB / 475.5 MB, free: 45.12 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005512/0.6557, allocations: 1.217 MB / 476.8 MB, free: 43.88 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.00066/0.6564, allocations: 167.3 kB / 476.9 MB, free: 43.71 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001568/0.6566, allocations: 87.42 kB / 477 MB, free: 43.62 MB / 314.7 MB Notification: Performance of SimCode: time 7.81e-07/0.6566, allocations: 3.938 kB / 477 MB, free: 43.62 MB / 314.7 MB Notification: Performance of Templates: time 0.02419/0.6808, allocations: 15.82 MB / 492.8 MB, free: 27.83 MB / 314.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)