Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001459/0.001459, allocations: 111.3 kB / 15.23 MB, free: 0.6406 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.00177/0.00177, allocations: 193.2 kB / 16.14 MB, free: 6.707 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.322/1.322, allocations: 205.1 MB / 222 MB, free: 4.945 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.001106/0.001106, allocations: 48.41 kB / 278.1 MB, free: 13 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2145/0.2156, allocations: 46.63 MB / 324.7 MB, free: 1.824 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.0219/0.2375, allocations: 21.37 MB / 346.1 MB, free: 14.73 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01307/0.2506, allocations: 6.372 MB / 352.4 MB, free: 8.332 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00505/0.2558, allocations: 115.5 kB / 352.5 MB, free: 8.219 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004017/0.2599, allocations: 1.263 MB / 353.8 MB, free: 6.949 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007113/0.267, allocations: 1.857 MB / 355.7 MB, free: 5.082 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003207/0.2702, allocations: 1.197 MB / 356.9 MB, free: 3.883 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008967/0.2792, allocations: 7.088 MB / 364 MB, free: 12.77 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005537/0.2847, allocations: 4.599 MB / 368.6 MB, free: 8.082 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003541/0.2883, allocations: 2.514 MB / 371.1 MB, free: 5.559 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00426/0.2926, allocations: 3.35 MB / 374.4 MB, free: 2.195 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009813/0.2936, allocations: 500 kB / 374.9 MB, free: 1.707 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002071/0.2957, allocations: 0.7809 MB / 375.7 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.00144/0.2971, allocations: 1.678 MB / 377.4 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003843/0.301, allocations: 3.176 MB / 380.5 MB, free: 12.05 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009049/0.31, allocations: 10.43 MB / 391 MB, free: 1.594 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.522e-06/0.3101, allocations: 4 kB / 391 MB, free: 1.59 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.493e-06/0.3101, allocations: 0 / 391 MB, free: 1.59 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0002006/0.3103, allocations: 0 / 391 MB, free: 1.59 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.0154/0.3257, allocations: 6.914 MB / 397.9 MB, free: 10.59 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.353e-05/0.3257, allocations: 12.03 kB / 397.9 MB, free: 10.58 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004643/0.3304, allocations: 1.063 MB / 399 MB, free: 9.512 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005719/0.3361, allocations: 3.445 MB / 402.4 MB, free: 5.992 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003215/0.3365, allocations: 419 kB / 402.8 MB, free: 5.582 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007616/0.3372, allocations: 0.5233 MB / 403.3 MB, free: 5.059 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01177/0.349, allocations: 7.056 MB / 410.4 MB, free: 13.93 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001052/0.3491, allocations: 11.84 kB / 410.4 MB, free: 13.92 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004551/0.3496, allocations: 220 kB / 410.6 MB, free: 13.7 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002215/0.3498, allocations: 258.6 kB / 410.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.009557/0.3594, allocations: 5.937 MB / 416.8 MB, free: 7.504 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03659/0.396, allocations: 22.43 MB / 439.2 MB, free: 0.5039 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009191/0.4052, allocations: 8.292 MB / 447.5 MB, free: 7.316 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00371/0.409, allocations: 2.179 MB / 449.7 MB, free: 5.129 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1926/0.6017, allocations: 6.197 MB / 455.9 MB, free: 105.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.741e-05/0.6018, allocations: 57.16 kB / 456 MB, free: 105.1 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 6.663e-06/0.6018, allocations: 0 / 456 MB, free: 105.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.03143/0.6332, allocations: 11.14 MB / 467.1 MB, free: 101 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.577e-05/0.6333, allocations: 73.19 kB / 467.2 MB, free: 101 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006095/0.6394, allocations: 3.154 MB / 470.3 MB, free: 99.8 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003935/0.6398, allocations: 65.58 kB / 470.4 MB, free: 99.75 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001814/0.6417, allocations: 2.501 MB / 472.9 MB, free: 97.84 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009627/0.6426, allocations: 0.8226 MB / 473.7 MB, free: 97.2 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001139/0.6438, allocations: 0.5602 MB / 474.3 MB, free: 96.93 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.549e-05/0.6439, allocations: 305.1 kB / 474.6 MB, free: 96.62 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.003073/0.647, allocations: 1.332 MB / 475.9 MB, free: 96.14 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003439/0.6504, allocations: 2.34 MB / 478.2 MB, free: 94.26 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.006368/0.6568, allocations: 3.923 MB / 482.2 MB, free: 91.34 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.429e-05/0.6568, allocations: 12 kB / 482.2 MB, free: 91.32 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.0105/0.6674, allocations: 4.705 MB / 486.9 MB, free: 86.51 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.922e-05/0.6674, allocations: 20.62 kB / 486.9 MB, free: 86.49 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.484e-05/0.6675, allocations: 32 kB / 486.9 MB, free: 86.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001594/0.6691, allocations: 0.5317 MB / 487.5 MB, free: 85.91 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004075/0.6732, allocations: 0.7488 MB / 488.2 MB, free: 85.16 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008815/0.682, allocations: 9.42 MB / 497.6 MB, free: 75.09 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004151/0.6862, allocations: 191.7 kB / 497.8 MB, free: 74.9 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003408/0.6866, allocations: 140 kB / 498 MB, free: 74.76 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * 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 (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (2,100.0%)} * Non-linear Jacobian (size): 0 systems * Without analytic Jacobian (size): 0 systems Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.002838/0.6895, allocations: 1.578 MB / 499.5 MB, free: 73.17 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000764/0.6902, allocations: 343.8 kB / 499.9 MB, free: 72.83 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0056/0.6958, allocations: 4.056 MB / 0.4921 GB, free: 68.68 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.228e-05/0.6959, allocations: 24 kB / 0.4921 GB, free: 68.66 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.156e-05/0.6959, allocations: 11.94 kB / 0.4921 GB, free: 68.65 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.72e-05/0.6959, allocations: 11.95 kB / 0.4922 GB, free: 68.64 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01219/0.7081, allocations: 8.978 MB / 0.5009 GB, free: 59.52 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.7081, allocations: 7.891 kB / 0.5009 GB, free: 59.51 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001566/0.7097, allocations: 411.9 kB / 0.5013 GB, free: 59.11 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001822/0.7115, allocations: 0.7347 MB / 0.502 GB, free: 58.35 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002349/0.7118, allocations: 63.97 kB / 0.5021 GB, free: 58.29 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0108/0.7226, allocations: 15.31 MB / 0.5171 GB, free: 41.91 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.36e-06/0.7226, allocations: 11.94 kB / 0.5171 GB, free: 41.9 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00818/0.7308, allocations: 5.837 MB / 0.5228 GB, free: 35.91 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001752/0.7326, allocations: 0.6957 MB / 0.5234 GB, free: 35.19 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005811/0.7332, allocations: 59.92 kB / 0.5235 GB, free: 35.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001585/0.7348, allocations: 139.9 kB / 0.5236 GB, free: 35 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004353/0.7352, allocations: 181.6 kB / 0.5238 GB, free: 34.82 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001344/0.7354, allocations: 75.97 kB / 0.5239 GB, free: 34.75 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002514/0.7379, allocations: 2.13 MB / 0.526 GB, free: 32.62 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.7379, allocations: 0 / 0.526 GB, free: 32.62 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003128/0.7411, allocations: 0.9888 MB / 0.5269 GB, free: 31.64 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.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 (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0004792/0.7415, allocations: 246.9 kB / 0.5272 GB, free: 31.39 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.005324/0.7469, allocations: 4.134 MB / 0.5312 GB, free: 27.16 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.7469, allocations: 4 kB / 0.5312 GB, free: 27.16 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003304/0.7502, allocations: 2.748 MB / 0.5339 GB, free: 24.32 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003659/0.7539, allocations: 0.9074 MB / 0.5348 GB, free: 23.41 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01486/0.7687, allocations: 12.3 MB / 0.5468 GB, free: 11.05 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002386/0.7712, allocations: 3.4 MB / 0.5501 GB, free: 7.613 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.00272/0.7739, allocations: 0.8151 MB / 0.5509 GB, free: 6.797 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006656/0.7746, allocations: 243.4 kB / 0.5511 GB, free: 6.562 MB / 382.1 MB Notification: Performance of SimCode: time 8.32e-07/0.7746, allocations: 0 / 0.5511 GB, free: 6.562 MB / 382.1 MB Notification: Performance of Templates: time 0.09119/0.8658, allocations: 49.39 MB / 0.5994 GB, free: 5.109 MB / 430.1 MB make -j1 -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)