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.001127/0.001127, allocations: 115.3 kB / 15.34 MB, free: 0.5156 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.001491/0.001492, allocations: 193 kB / 16.25 MB, free: 6.629 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.361/1.361, allocations: 205.1 MB / 222.1 MB, free: 4.727 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.001205/0.001205, allocations: 55.86 kB / 278.2 MB, free: 12.68 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2129/0.2141, allocations: 46.62 MB / 324.9 MB, free: 1.945 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02111/0.2353, allocations: 21.38 MB / 346.2 MB, free: 14.66 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01309/0.2484, allocations: 6.333 MB / 352.6 MB, free: 8.301 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005022/0.2535, allocations: 111.5 kB / 352.7 MB, free: 8.191 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005798/0.2594, allocations: 1.27 MB / 354 MB, free: 6.914 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008309/0.2677, allocations: 1.845 MB / 355.8 MB, free: 5.059 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00436/0.2721, allocations: 1.185 MB / 357 MB, free: 3.871 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01043/0.2825, allocations: 6.62 MB / 363.6 MB, free: 13.22 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009852/0.2924, allocations: 5.511 MB / 369.1 MB, free: 7.629 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006183/0.2986, allocations: 2.904 MB / 372 MB, free: 4.715 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005719/0.3044, allocations: 3.581 MB / 375.6 MB, free: 1.121 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002519/0.3069, allocations: 0.8125 MB / 376.4 MB, free: 316 kB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003371/0.3103, allocations: 1.109 MB / 377.5 MB, free: 15.2 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002885/0.3132, allocations: 2.022 MB / 379.5 MB, free: 13.17 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.004956/0.3182, allocations: 3.532 MB / 383.1 MB, free: 9.621 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01338/0.3316, allocations: 10.66 MB / 393.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.394e-06/0.3317, allocations: 0 / 393.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3317, allocations: 3.938 kB / 393.7 MB, free: 14.93 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0003967/0.3321, allocations: 4 kB / 393.7 MB, free: 14.92 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.01997/0.3521, allocations: 6.911 MB / 400.7 MB, free: 7.93 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.395e-05/0.3521, allocations: 8.031 kB / 400.7 MB, free: 7.922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005187/0.3573, allocations: 1.067 MB / 401.7 MB, free: 6.848 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007458/0.3648, allocations: 3.445 MB / 405.2 MB, free: 3.328 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004574/0.3653, allocations: 423 kB / 405.6 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00162/0.3669, allocations: 0.5194 MB / 406.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01555/0.3825, allocations: 7.056 MB / 413.2 MB, free: 11.27 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001562/0.3827, allocations: 11.84 kB / 413.2 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006615/0.3834, allocations: 224 kB / 413.4 MB, free: 11.04 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002667/0.3836, allocations: 258.6 kB / 413.6 MB, free: 10.78 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01196/0.3956, allocations: 5.933 MB / 419.6 MB, free: 4.84 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04289/0.4385, allocations: 22.43 MB / 442 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008736/0.4473, allocations: 8.288 MB / 450.3 MB, free: 4.652 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003903/0.4513, allocations: 2.191 MB / 452.5 MB, free: 2.457 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.1999/0.6512, allocations: 6.179 MB / 458.7 MB, free: 105.6 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.536e-05/0.6513, allocations: 61.47 kB / 458.7 MB, free: 105.6 MB / 382.1 MB Notification: Performance of pre-optimization done (n=220): time 5.15e-06/0.6513, allocations: 0 / 458.7 MB, free: 105.6 MB / 382.1 MB Notification: Performance of matching and sorting (n=240): time 0.02135/0.6727, allocations: 11.14 MB / 469.9 MB, free: 100.9 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.618e-05/0.6728, allocations: 81 kB / 469.9 MB, free: 100.8 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005094/0.6779, allocations: 3.151 MB / 473.1 MB, free: 99.64 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004283/0.6784, allocations: 65.42 kB / 473.2 MB, free: 99.57 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001519/0.6799, allocations: 2.496 MB / 475.7 MB, free: 97.61 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009601/0.6809, allocations: 0.8387 MB / 476.5 MB, free: 96.88 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008234/0.6817, allocations: 0.5572 MB / 477 MB, free: 96.56 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 5.932e-05/0.6818, allocations: 301.1 kB / 477.3 MB, free: 96.26 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001871/0.6837, allocations: 1.335 MB / 478.7 MB, free: 95.59 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002277/0.6859, allocations: 2.34 MB / 481 MB, free: 93.21 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00414/0.6901, allocations: 3.917 MB / 484.9 MB, free: 88.82 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.726e-05/0.6901, allocations: 12 kB / 484.9 MB, free: 88.81 MB / 382.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00672/0.6969, allocations: 4.702 MB / 489.6 MB, free: 84 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.668e-05/0.697, allocations: 24.61 kB / 489.7 MB, free: 83.97 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.401e-05/0.697, allocations: 32 kB / 489.7 MB, free: 83.94 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001086/0.6981, allocations: 0.5285 MB / 490.2 MB, free: 83.39 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002868/0.701, allocations: 0.7449 MB / 491 MB, free: 82.65 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006686/0.7077, allocations: 10.29 MB / 0.4895 GB, free: 71.68 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0034/0.7111, allocations: 185.8 kB / 0.4897 GB, free: 71.5 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00048/0.7116, allocations: 136 kB / 0.4898 GB, free: 71.37 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.002986/0.7146, allocations: 1.574 MB / 0.4914 GB, free: 69.78 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008301/0.7155, allocations: 347.6 kB / 0.4917 GB, free: 69.44 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00575/0.7212, allocations: 4.052 MB / 0.4957 GB, free: 65.29 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.659e-05/0.7213, allocations: 24 kB / 0.4957 GB, free: 65.27 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.386e-05/0.7213, allocations: 12 kB / 0.4957 GB, free: 65.25 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.119e-05/0.7213, allocations: 11.95 kB / 0.4957 GB, free: 65.24 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01302/0.7343, allocations: 8.985 MB / 0.5045 GB, free: 56.11 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.049e-05/0.7344, allocations: 4 kB / 0.5045 GB, free: 56.11 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00164/0.7361, allocations: 408 kB / 0.5049 GB, free: 55.71 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001705/0.7378, allocations: 0.7433 MB / 0.5056 GB, free: 54.95 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001741/0.738, allocations: 67.97 kB / 0.5057 GB, free: 54.88 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01108/0.749, allocations: 16.73 MB / 0.522 GB, free: 37.04 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.7491, allocations: 7.938 kB / 0.522 GB, free: 37.03 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008252/0.7574, allocations: 5.839 MB / 0.5277 GB, free: 31.04 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002072/0.7595, allocations: 0.6958 MB / 0.5284 GB, free: 30.32 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005728/0.76, allocations: 59.98 kB / 0.5284 GB, free: 30.26 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001616/0.7617, allocations: 139.9 kB / 0.5286 GB, free: 30.12 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004885/0.7622, allocations: 181.6 kB / 0.5287 GB, free: 29.95 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.7623, allocations: 72.11 kB / 0.5288 GB, free: 29.88 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.002768/0.7651, allocations: 2.138 MB / 0.5309 GB, free: 27.75 MB / 382.1 MB Notification: Performance of sort global known variables: time 2.6e-07/0.7651, allocations: 0 / 0.5309 GB, free: 27.75 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.003513/0.7686, allocations: 0.991 MB / 0.5319 GB, free: 26.76 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.000557/0.7692, allocations: 256 kB / 0.5321 GB, free: 26.5 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.01005/0.7793, allocations: 5.722 MB / 0.5377 GB, free: 20.71 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 9.658e-06/0.7793, allocations: 3.938 kB / 0.5377 GB, free: 20.7 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003548/0.7829, allocations: 2.744 MB / 0.5404 GB, free: 17.86 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004503/0.7874, allocations: 0.9535 MB / 0.5413 GB, free: 16.91 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01594/0.8034, allocations: 12.3 MB / 0.5533 GB, free: 4.543 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002718/0.8061, allocations: 3.415 MB / 0.5567 GB, free: 1.09 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.002839/0.809, allocations: 0.8034 MB / 0.5575 GB, free: 292 kB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006412/0.8096, allocations: 239.4 kB / 0.5577 GB, free: 52 kB / 382.1 MB Notification: Performance of SimCode: time 1.523e-06/0.8096, allocations: 0 / 0.5577 GB, free: 52 kB / 382.1 MB Notification: Performance of Templates: time 0.2839/1.094, allocations: 51.26 MB / 0.6077 GB, free: 139.9 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)