Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.2_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.2_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.2_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.001391/0.001391, allocations: 110.3 kB / 17.06 MB, free: 6.004 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.001582/0.001582, allocations: 198.9 kB / 18 MB, free: 5.082 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.351/1.351, allocations: 205.1 MB / 223.9 MB, free: 12.24 MB / 190.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.001912/0.001912, allocations: 43.94 kB / 327.9 MB, free: 3.266 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1046/0.1065, allocations: 46.61 MB / 374.5 MB, free: 4.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.1931/0.2996, allocations: 21.68 MB / 396.2 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01378/0.3135, allocations: 6.435 MB / 402.6 MB, free: 11.07 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003769/0.3173, allocations: 125.1 kB / 402.7 MB, free: 11.04 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004498/0.3218, allocations: 1.476 MB / 404.2 MB, free: 10.22 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007248/0.3291, allocations: 2.045 MB / 406.3 MB, free: 8.875 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003364/0.3325, allocations: 1.309 MB / 407.6 MB, free: 8.043 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01008/0.3426, allocations: 6.532 MB / 414.1 MB, free: 4.277 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007471/0.3501, allocations: 5.498 MB / 419.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005069/0.3552, allocations: 3.008 MB / 422.6 MB, free: 15.38 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00558/0.3608, allocations: 3.561 MB / 426.2 MB, free: 11.8 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001636/0.3624, allocations: 0.8203 MB / 427 MB, free: 10.98 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002867/0.3653, allocations: 1.105 MB / 428.1 MB, free: 9.879 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001796/0.3671, allocations: 2.022 MB / 430.1 MB, free: 7.852 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004367/0.3715, allocations: 3.528 MB / 433.6 MB, free: 4.309 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0114/0.3829, allocations: 10.79 MB / 444.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.737e-06/0.383, allocations: 0 / 444.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.785e-06/0.383, allocations: 0 / 444.4 MB, free: 9.488 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0002819/0.3833, allocations: 0 / 444.4 MB, free: 9.488 MB / 366.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.01802/0.4013, allocations: 6.922 MB / 451.3 MB, free: 2.484 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.096e-05/0.4014, allocations: 12.03 kB / 451.4 MB, free: 2.473 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004943/0.4063, allocations: 1.067 MB / 452.4 MB, free: 1.398 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007353/0.4137, allocations: 3.52 MB / 455.9 MB, free: 13.8 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003255/0.414, allocations: 403.3 kB / 456.3 MB, free: 13.41 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001122/0.4152, allocations: 0.5349 MB / 456.9 MB, free: 12.87 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01288/0.4281, allocations: 7.044 MB / 463.9 MB, free: 5.754 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001328/0.4283, allocations: 19.84 kB / 463.9 MB, free: 5.734 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0005305/0.4288, allocations: 220 kB / 464.2 MB, free: 5.52 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002674/0.4291, allocations: 262.5 kB / 464.4 MB, free: 5.262 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01077/0.4399, allocations: 5.937 MB / 470.3 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03426/0.4741, allocations: 22.15 MB / 492.5 MB, free: 8.594 MB / 414.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008224/0.4824, allocations: 8.293 MB / 0.489 GB, free: 15.41 MB / 430.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003778/0.4862, allocations: 2.159 MB / 0.4912 GB, free: 13.24 MB / 430.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01218/0.4984, allocations: 6.179 MB / 0.4972 GB, free: 6.93 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.568e-05/0.4985, allocations: 56.56 kB / 0.4972 GB, free: 6.863 MB / 430.1 MB Notification: Performance of pre-optimization done (n=220): time 4.449e-06/0.4985, allocations: 0 / 0.4972 GB, free: 6.863 MB / 430.1 MB Notification: Performance of matching and sorting (n=240): time 0.0214/0.52, allocations: 11.15 MB / 0.5081 GB, free: 11.45 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.748e-05/0.52, allocations: 81.39 kB / 0.5082 GB, free: 11.36 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004079/0.5241, allocations: 3.144 MB / 0.5113 GB, free: 8.219 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001477/0.5243, allocations: 69.64 kB / 0.5113 GB, free: 8.145 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001497/0.5258, allocations: 2.498 MB / 0.5138 GB, free: 5.621 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005742/0.5264, allocations: 0.828 MB / 0.5146 GB, free: 4.781 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0007984/0.5272, allocations: 0.5614 MB / 0.5151 GB, free: 4.211 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 7.975e-05/0.5273, allocations: 301.1 kB / 0.5154 GB, free: 3.914 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002025/0.5293, allocations: 1.334 MB / 0.5167 GB, free: 2.578 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002626/0.5319, allocations: 2.335 MB / 0.519 GB, free: 15.8 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005032/0.537, allocations: 3.928 MB / 0.5228 GB, free: 11.39 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.473e-05/0.537, allocations: 8 kB / 0.5229 GB, free: 11.39 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.007259/0.5443, allocations: 4.706 MB / 0.5275 GB, free: 6.57 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.229e-05/0.5443, allocations: 20 kB / 0.5275 GB, free: 6.551 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.128e-05/0.5443, allocations: 28 kB / 0.5275 GB, free: 6.523 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001224/0.5456, allocations: 0.5295 MB / 0.528 GB, free: 5.973 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00311/0.5487, allocations: 0.741 MB / 0.5287 GB, free: 5.23 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008619/0.5573, allocations: 10.29 MB / 0.5388 GB, free: 10.24 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002499/0.5599, allocations: 187.8 kB / 0.539 GB, free: 10.06 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002238/0.5601, allocations: 148 kB / 0.5391 GB, free: 9.914 MB / 478.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.002703/0.5628, allocations: 1.57 MB / 0.5406 GB, free: 8.332 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006568/0.5635, allocations: 343.8 kB / 0.541 GB, free: 7.992 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00645/0.5699, allocations: 4.049 MB / 0.5449 GB, free: 3.844 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.718e-05/0.57, allocations: 27.94 kB / 0.545 GB, free: 3.816 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.254e-05/0.57, allocations: 8 kB / 0.545 GB, free: 3.809 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.102e-05/0.57, allocations: 11.95 kB / 0.545 GB, free: 3.797 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2021/0.7721, allocations: 8.958 MB / 0.5537 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.334e-05/0.7722, allocations: 6.531 kB / 0.5537 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/0.774, allocations: 408.3 kB / 0.5541 GB, free: 145.1 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002062/0.7761, allocations: 0.7334 MB / 0.5548 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001765/0.7763, allocations: 66.25 kB / 0.5549 GB, free: 144.9 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01332/0.7896, allocations: 16.72 MB / 0.5712 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.895e-06/0.7897, allocations: 7.172 kB / 0.5712 GB, free: 130.9 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009643/0.7993, allocations: 5.843 MB / 0.5769 GB, free: 128.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001917/0.8012, allocations: 0.6968 MB / 0.5776 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004343/0.8017, allocations: 56.77 kB / 0.5777 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001646/0.8033, allocations: 145.6 kB / 0.5778 GB, free: 128 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004554/0.8038, allocations: 180.8 kB / 0.578 GB, free: 127.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001552/0.804, allocations: 71.8 kB / 0.578 GB, free: 127.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003132/0.8071, allocations: 2.128 MB / 0.5801 GB, free: 127.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.61e-07/0.8071, allocations: 3.719 kB / 0.5801 GB, free: 127.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.003651/0.8108, allocations: 0.9908 MB / 0.5811 GB, free: 127 MB / 478.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.0005726/0.8114, allocations: 255.8 kB / 0.5813 GB, free: 126.9 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.005658/0.817, allocations: 4.145 MB / 0.5854 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 5.31e-06/0.8171, allocations: 1.688 kB / 0.5854 GB, free: 124.9 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003351/0.8204, allocations: 2.748 MB / 0.5881 GB, free: 123.4 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003629/0.8241, allocations: 0.9596 MB / 0.589 GB, free: 123 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01298/0.837, allocations: 9.918 MB / 0.5987 GB, free: 117 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002467/0.8395, allocations: 3.409 MB / 0.602 GB, free: 114.4 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002375/0.8419, allocations: 0.8122 MB / 0.6028 GB, free: 113.8 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006008/0.8425, allocations: 243.4 kB / 0.6031 GB, free: 113.5 MB / 478.1 MB Notification: Performance of SimCode: time 9.12e-07/0.8425, allocations: 0 / 0.6031 GB, free: 113.5 MB / 478.1 MB Notification: Performance of Templates: time 0.06878/0.9113, allocations: 49.88 MB / 0.6518 GB, free: 64.17 MB / 478.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)