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.0009827/0.0009825, allocations: 92.91 kB / 16.3 MB, free: 5.996 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.0009272/0.0009274, allocations: 183.7 kB / 17.2 MB, free: 5.914 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.418/1.418, allocations: 205.4 MB / 223.4 MB, free: 5.328 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.0004896/0.0004899, allocations: 8 kB / 280.1 MB, free: 12.73 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.269, allocations: 47.59 MB / 327.7 MB, free: 1.492 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.02115/0.2902, allocations: 17.41 MB / 345.1 MB, free: 2.062 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.01494/0.3052, allocations: 6.244 MB / 351.4 MB, free: 11.8 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004848/0.3101, allocations: 115.4 kB / 351.5 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004881/0.315, allocations: 1.119 MB / 352.6 MB, free: 10.56 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009228/0.3243, allocations: 1.819 MB / 354.4 MB, free: 8.738 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004852/0.3292, allocations: 0.8733 MB / 355.3 MB, free: 7.863 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01204/0.3413, allocations: 4.368 MB / 359.7 MB, free: 3.484 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006764/0.3481, allocations: 3.69 MB / 363.3 MB, free: 15.74 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004481/0.3526, allocations: 2.02 MB / 365.4 MB, free: 13.71 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005431/0.3581, allocations: 2.513 MB / 367.9 MB, free: 11.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001603/0.3597, allocations: 336 kB / 368.2 MB, free: 10.86 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003963/0.3637, allocations: 0.5504 MB / 368.8 MB, free: 10.31 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002132/0.3659, allocations: 1.367 MB / 370.1 MB, free: 8.941 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002586/0.3685, allocations: 1.198 MB / 371.3 MB, free: 7.734 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01312/0.3816, allocations: 8.671 MB / 380 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.488e-06/0.3817, allocations: 0 / 380 MB, free: 15.04 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.035e-06/0.3817, allocations: 4 kB / 380 MB, free: 15.04 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0004087/0.3821, allocations: 0 / 380 MB, free: 15.04 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.02091/0.403, allocations: 5.843 MB / 385.8 MB, free: 9.113 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.328e-05/0.4031, allocations: 8.031 kB / 385.8 MB, free: 9.105 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006397/0.4095, allocations: 1.074 MB / 386.9 MB, free: 8.023 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009758/0.4193, allocations: 3.388 MB / 390.3 MB, free: 4.562 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0005991/0.42, allocations: 426.7 kB / 390.7 MB, free: 4.145 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002329/0.4223, allocations: 0.5271 MB / 391.2 MB, free: 3.617 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01955/0.4419, allocations: 6.97 MB / 398.2 MB, free: 12.57 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001639/0.4421, allocations: 15.84 kB / 398.2 MB, free: 12.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000707/0.4428, allocations: 220 kB / 398.4 MB, free: 12.34 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002844/0.4431, allocations: 258.6 kB / 398.7 MB, free: 12.09 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01418/0.4573, allocations: 5.921 MB / 404.6 MB, free: 6.16 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05113/0.5085, allocations: 22.43 MB / 427.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01095/0.5195, allocations: 8.283 MB / 435.3 MB, free: 5.984 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01407/0.5336, allocations: 5.141 MB / 440.5 MB, free: 0.7109 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.989e-05/0.5337, allocations: 60.56 kB / 440.5 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of pre-optimization done (n=234): time 4.349e-06/0.5337, allocations: 0 / 440.5 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of matching and sorting (n=256): time 0.02799/0.5617, allocations: 11.76 MB / 452.3 MB, free: 4.637 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.265e-05/0.5619, allocations: 81.42 kB / 452.4 MB, free: 4.543 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00582/0.5677, allocations: 3.006 MB / 455.4 MB, free: 1.535 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003984/0.5681, allocations: 69.7 kB / 455.5 MB, free: 1.461 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.2258/0.7939, allocations: 2.477 MB / 457.9 MB, free: 105.4 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00126/0.7952, allocations: 0.8807 MB / 458.8 MB, free: 104.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002476/0.7955, allocations: 65.56 kB / 458.9 MB, free: 104.9 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0002363/0.7958, allocations: 438.8 kB / 459.3 MB, free: 104.6 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00292/0.7987, allocations: 1.381 MB / 460.7 MB, free: 104.6 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002882/0.8016, allocations: 2.361 MB / 463 MB, free: 102.9 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002872/0.8045, allocations: 1.79 MB / 464.8 MB, free: 102.1 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.397e-05/0.8045, allocations: 7.75 kB / 464.8 MB, free: 102.1 MB / 382.1 MB Notification: Performance of matching and sorting (n=417) (initialization): time 0.007258/0.8118, allocations: 4.805 MB / 469.6 MB, free: 100 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.805e-05/0.8119, allocations: 15.69 kB / 469.7 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.275e-05/0.8119, allocations: 30.69 kB / 469.7 MB, free: 100 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001311/0.8133, allocations: 0.5238 MB / 470.2 MB, free: 99.85 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002849/0.8161, allocations: 0.7818 MB / 471 MB, free: 99.77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006755/0.8229, allocations: 9.542 MB / 480.5 MB, free: 91.81 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003053/0.826, allocations: 194 kB / 480.7 MB, free: 91.75 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000357/0.8264, allocations: 145.5 kB / 480.9 MB, free: 91.72 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 140 * 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 (391): * Single equations (assignments): 384 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details: * Constant Jacobian: 0 * Linear Jacobian (size,density): 2 {(2,100.0%),(2,100.0%)} * Non-linear Jacobian: 0 * Without analytic Jacobian: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 5 {(1,100.0%) 1,(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.003384/0.8297, allocations: 1.576 MB / 482.5 MB, free: 90.87 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007979/0.8306, allocations: 343.7 kB / 482.8 MB, free: 90.69 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006374/0.8369, allocations: 4.213 MB / 487 MB, free: 87.76 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.037e-05/0.837, allocations: 24 kB / 487 MB, free: 87.73 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.663e-05/0.837, allocations: 11.84 kB / 487 MB, free: 87.73 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.549e-05/0.8371, allocations: 15.91 kB / 487 MB, free: 87.71 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01546/0.8525, allocations: 9.276 MB / 496.3 MB, free: 78.27 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.523e-05/0.8526, allocations: 4 kB / 496.3 MB, free: 78.27 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00179/0.8544, allocations: 451.3 kB / 496.8 MB, free: 77.83 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001726/0.8562, allocations: 0.7326 MB / 497.5 MB, free: 77.07 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002087/0.8564, allocations: 75.97 kB / 497.6 MB, free: 77 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01118/0.8676, allocations: 15.48 MB / 0.501 GB, free: 60.46 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.362e-06/0.8676, allocations: 4 kB / 0.501 GB, free: 60.46 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008957/0.8766, allocations: 6.665 MB / 0.5075 GB, free: 53.38 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002255/0.8789, allocations: 0.6958 MB / 0.5082 GB, free: 52.66 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008183/0.8797, allocations: 67.98 kB / 0.5083 GB, free: 52.6 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001868/0.8816, allocations: 155.8 kB / 0.5084 GB, free: 52.45 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005122/0.8822, allocations: 201.5 kB / 0.5086 GB, free: 52.25 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001627/0.8823, allocations: 75.98 kB / 0.5087 GB, free: 52.18 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.003117/0.8854, allocations: 2.027 MB / 0.5107 GB, free: 50.16 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.8855, allocations: 0 / 0.5107 GB, free: 50.16 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.004/0.8895, allocations: 0.9982 MB / 0.5117 GB, free: 49.17 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 26 * 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 (217): * Single equations (assignments): 209 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 8 {(3,100.0%) 12,(1,100.0%) 3,(1,100.0%) 5,(1,100.0%) 1,(2,100.0%) 1,(1,100.0%) 8,(1,100.0%) 1,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005228/0.89, allocations: 219 kB / 0.5119 GB, free: 48.95 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.006241/0.8963, allocations: 4.25 MB / 0.516 GB, free: 44.58 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 8.105e-06/0.8963, allocations: 0 / 0.516 GB, free: 44.58 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003897/0.9002, allocations: 2.837 MB / 0.5188 GB, free: 41.65 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004709/0.9049, allocations: 0.872 MB / 0.5196 GB, free: 40.78 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01908/0.924, allocations: 12.11 MB / 0.5315 GB, free: 28.57 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003361/0.9275, allocations: 3.512 MB / 0.5349 GB, free: 25.02 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.003237/0.9307, allocations: 0.8191 MB / 0.5357 GB, free: 24.2 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000689/0.9314, allocations: 251.4 kB / 0.5359 GB, free: 23.96 MB / 382.1 MB Notification: Performance of SimCode: time 2.054e-06/0.9314, allocations: 3.938 kB / 0.5359 GB, free: 23.95 MB / 382.1 MB Notification: Performance of Templates: time 0.08373/1.015, allocations: 46.87 MB / 0.5817 GB, free: 9.016 MB / 414.1 MB make -j1 -f Modelica_3.2.2_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: