Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.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.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.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.001576/0.001576, allocations: 108 kB / 15.61 MB, free: 152 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001927/0.001927, allocations: 193.9 kB / 16.53 MB, free: 6.699 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.349/1.349, allocations: 205.1 MB / 222.4 MB, free: 4.609 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.001211/0.001211, allocations: 55.92 kB / 278.7 MB, free: 12.37 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1967/0.1979, allocations: 46.64 MB / 325.3 MB, free: 1.863 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02154/0.2195, allocations: 21.68 MB / 347 MB, free: 14.16 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01256/0.2321, allocations: 6.422 MB / 353.4 MB, free: 7.719 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004029/0.2362, allocations: 127.4 kB / 353.5 MB, free: 7.594 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004503/0.2407, allocations: 1.471 MB / 355 MB, free: 6.113 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007444/0.2482, allocations: 2.054 MB / 357.1 MB, free: 4.047 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003878/0.2521, allocations: 1.31 MB / 358.4 MB, free: 2.734 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.008495/0.2606, allocations: 6.488 MB / 364.9 MB, free: 12.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007682/0.2683, allocations: 5.511 MB / 370.4 MB, free: 6.625 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004327/0.2727, allocations: 2.975 MB / 373.4 MB, free: 3.641 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005135/0.2778, allocations: 3.561 MB / 376.9 MB, free: 68 kB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001933/0.2798, allocations: 0.8165 MB / 377.7 MB, free: 15.24 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002913/0.2827, allocations: 1.113 MB / 378.8 MB, free: 14.13 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002393/0.2851, allocations: 2.022 MB / 380.9 MB, free: 12.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004503/0.2897, allocations: 3.539 MB / 384.4 MB, free: 8.551 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.009649/0.2993, allocations: 10.68 MB / 395.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.52e-06/0.2994, allocations: 0 / 395.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2994, allocations: 0 / 395.1 MB, free: 13.84 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002582/0.2996, allocations: 0 / 395.1 MB, free: 13.84 MB / 334.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.01884/0.3185, allocations: 6.914 MB / 402 MB, free: 6.84 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.929e-05/0.3185, allocations: 12.03 kB / 402 MB, free: 6.828 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004606/0.3232, allocations: 1.063 MB / 403.1 MB, free: 5.758 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005479/0.3287, allocations: 3.481 MB / 406.6 MB, free: 2.203 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003248/0.329, allocations: 419 kB / 407 MB, free: 1.793 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0007085/0.3297, allocations: 0.5271 MB / 407.5 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01133/0.3411, allocations: 7.052 MB / 414.5 MB, free: 10.14 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001133/0.3412, allocations: 11.84 kB / 414.6 MB, free: 10.13 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000553/0.3418, allocations: 224 kB / 414.8 MB, free: 9.91 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002184/0.342, allocations: 258.6 kB / 415 MB, free: 9.656 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01015/0.3521, allocations: 5.933 MB / 421 MB, free: 3.715 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03921/0.3914, allocations: 22.43 MB / 443.4 MB, free: 12.71 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008633/0.4001, allocations: 8.284 MB / 451.7 MB, free: 3.531 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003966/0.4041, allocations: 2.187 MB / 453.9 MB, free: 1.34 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1795/0.5836, allocations: 6.178 MB / 460 MB, free: 105.4 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.334e-05/0.5836, allocations: 60.09 kB / 460.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 4.568e-06/0.5837, allocations: 0 / 460.1 MB, free: 105.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02017/0.6038, allocations: 11.15 MB / 471.2 MB, free: 100.5 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.076e-05/0.6039, allocations: 80.75 kB / 471.3 MB, free: 100.5 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004043/0.608, allocations: 3.152 MB / 474.5 MB, free: 99.25 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001423/0.6081, allocations: 65.61 kB / 474.5 MB, free: 99.19 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001194/0.6093, allocations: 2.502 MB / 477 MB, free: 97 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004442/0.6098, allocations: 0.8233 MB / 477.9 MB, free: 96.28 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006815/0.6105, allocations: 0.5573 MB / 478.4 MB, free: 95.96 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 4.541e-05/0.6105, allocations: 305 kB / 478.7 MB, free: 95.66 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001818/0.6123, allocations: 1.337 MB / 480.1 MB, free: 94.86 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002091/0.6144, allocations: 2.338 MB / 482.4 MB, free: 92.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003967/0.6184, allocations: 3.924 MB / 486.3 MB, free: 87.68 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.423e-05/0.6184, allocations: 8 kB / 486.3 MB, free: 87.67 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006722/0.6252, allocations: 4.709 MB / 491 MB, free: 82.85 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.063e-05/0.6252, allocations: 16.62 kB / 491.1 MB, free: 82.83 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.097e-05/0.6253, allocations: 32 kB / 491.1 MB, free: 82.8 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.6263, allocations: 0.5365 MB / 491.6 MB, free: 82.25 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002357/0.6286, allocations: 0.7449 MB / 492.4 MB, free: 81.5 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0066/0.6353, allocations: 10.28 MB / 0.4909 GB, free: 70.54 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002657/0.6379, allocations: 187.7 kB / 0.491 GB, free: 70.36 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001881/0.6381, allocations: 140 kB / 0.4912 GB, free: 70.22 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.002395/0.6405, allocations: 1.582 MB / 0.4927 GB, free: 68.62 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000518/0.6411, allocations: 343.8 kB / 0.4931 GB, free: 68.29 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005594/0.6467, allocations: 4.048 MB / 0.497 GB, free: 64.14 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.209e-05/0.6467, allocations: 24 kB / 0.497 GB, free: 64.12 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.063e-05/0.6467, allocations: 8 kB / 0.497 GB, free: 64.11 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.005e-05/0.6467, allocations: 15.89 kB / 0.4971 GB, free: 64.09 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01152/0.6583, allocations: 8.976 MB / 0.5058 GB, free: 54.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.073e-05/0.6583, allocations: 4 kB / 0.5058 GB, free: 54.97 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001639/0.66, allocations: 419.9 kB / 0.5062 GB, free: 54.56 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00164/0.6616, allocations: 0.7406 MB / 0.5069 GB, free: 53.8 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001435/0.6618, allocations: 63.97 kB / 0.507 GB, free: 53.73 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01153/0.6733, allocations: 16.73 MB / 0.5233 GB, free: 35.89 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.749e-06/0.6733, allocations: 8 kB / 0.5234 GB, free: 35.88 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007853/0.6812, allocations: 5.843 MB / 0.5291 GB, free: 29.88 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001344/0.6825, allocations: 0.6999 MB / 0.5297 GB, free: 29.16 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004247/0.683, allocations: 55.98 kB / 0.5298 GB, free: 29.11 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001516/0.6845, allocations: 139.9 kB / 0.5299 GB, free: 28.97 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003546/0.6849, allocations: 181.6 kB / 0.5301 GB, free: 28.79 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001418/0.685, allocations: 75.92 kB / 0.5302 GB, free: 28.72 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.00261/0.6876, allocations: 2.123 MB / 0.5322 GB, free: 26.61 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.6876, allocations: 3.844 kB / 0.5322 GB, free: 26.61 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003314/0.691, allocations: 0.9942 MB / 0.5332 GB, free: 25.61 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.0004649/0.6914, allocations: 254.7 kB / 0.5335 GB, free: 25.36 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.009867/0.7013, allocations: 5.72 MB / 0.539 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.963e-06/0.7013, allocations: 0 / 0.539 GB, free: 19.57 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003359/0.7047, allocations: 2.756 MB / 0.5417 GB, free: 16.71 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004175/0.7089, allocations: 0.9535 MB / 0.5427 GB, free: 15.76 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01439/0.7233, allocations: 10.04 MB / 0.5525 GB, free: 5.656 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002638/0.726, allocations: 3.411 MB / 0.5558 GB, free: 2.207 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002757/0.7288, allocations: 0.8034 MB / 0.5566 GB, free: 1.402 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006114/0.7294, allocations: 243.4 kB / 0.5568 GB, free: 1.164 MB / 382.1 MB Notification: Performance of SimCode: time 6.71e-07/0.7294, allocations: 0 / 0.5568 GB, free: 1.164 MB / 382.1 MB Notification: Performance of Templates: time 0.2599/0.9893, allocations: 51.36 MB / 0.607 GB, free: 139.8 MB / 430.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1)