Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.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_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001198/0.001198, allocations: 86.95 kB / 15.06 MB, free: 1.09 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.001164/0.001164, allocations: 168.7 kB / 15.95 MB, free: 204 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.522/1.522, allocations: 205.4 MB / 222.1 MB, free: 5.66 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.0005106/0.0005107, allocations: 12 kB / 278.9 MB, free: 12.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3255/0.3261, allocations: 47.59 MB / 326.5 MB, free: 1.617 MB / 254.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase): time 0.02596/0.3521, allocations: 22.28 MB / 348.8 MB, free: 13.32 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.01992/0.3721, allocations: 6.626 MB / 355.4 MB, free: 6.672 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007197/0.3793, allocations: 139.4 kB / 355.5 MB, free: 6.535 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006206/0.3856, allocations: 1.227 MB / 356.8 MB, free: 5.301 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01069/0.3963, allocations: 1.868 MB / 358.6 MB, free: 3.422 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00557/0.4019, allocations: 1.01 MB / 359.6 MB, free: 2.41 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.01671/0.4186, allocations: 8.413 MB / 368.1 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01439/0.4331, allocations: 5.097 MB / 373.1 MB, free: 4.801 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008251/0.4414, allocations: 2.724 MB / 375.9 MB, free: 2.066 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.008984/0.4504, allocations: 3.54 MB / 379.4 MB, free: 14.51 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003323/0.4538, allocations: 468 kB / 379.9 MB, free: 14.05 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005735/0.4595, allocations: 0.6443 MB / 380.5 MB, free: 13.41 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004125/0.4637, allocations: 1.697 MB / 382.2 MB, free: 11.71 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006367/0.4701, allocations: 1.599 MB / 383.8 MB, free: 10.1 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02209/0.4922, allocations: 12.06 MB / 395.9 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.636e-06/0.4923, allocations: 0 / 395.9 MB, free: 14 MB / 334.1 MB Notification: Performance of FrontEnd: time 4.168e-06/0.4923, allocations: 0 / 395.9 MB, free: 14 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0009452/0.4933, allocations: 4 kB / 395.9 MB, free: 13.99 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: 1932 * Number of variables: 1932 Notification: Performance of Generate backend data structure: time 0.02919/0.5225, allocations: 7.813 MB / 403.7 MB, free: 6.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.399e-05/0.5226, allocations: 16.03 kB / 403.7 MB, free: 6.074 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01164/0.5343, allocations: 1.743 MB / 405.4 MB, free: 4.32 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01462/0.5489, allocations: 4.498 MB / 409.9 MB, free: 15.75 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001017/0.55, allocations: 0.5493 MB / 410.5 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004007/0.554, allocations: 0.7107 MB / 411.2 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03975/0.5938, allocations: 9.738 MB / 420.9 MB, free: 4.672 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004349/0.5943, allocations: 4 kB / 420.9 MB, free: 4.668 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.002829/0.5971, allocations: 300 kB / 421.2 MB, free: 4.375 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0004055/0.5976, allocations: 354.6 kB / 421.6 MB, free: 4.027 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02457/0.6222, allocations: 8.264 MB / 429.9 MB, free: 11.75 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5277/1.15, allocations: 30.62 MB / 460.5 MB, free: 92.37 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01391/1.164, allocations: 16.06 MB / 476.5 MB, free: 80.38 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004769/1.169, allocations: 3.066 MB / 479.6 MB, free: 80.32 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01334/1.182, allocations: 8.118 MB / 487.7 MB, free: 76.37 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.835e-05/1.182, allocations: 65.66 kB / 487.8 MB, free: 76.3 MB / 382.1 MB Notification: Performance of pre-optimization done (n=281): time 6.131e-06/1.182, allocations: 0 / 487.8 MB, free: 76.3 MB / 382.1 MB Notification: Performance of matching and sorting (n=289): time 0.02328/1.206, allocations: 11.79 MB / 499.6 MB, free: 69.39 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.472e-05/1.206, allocations: 82.25 kB / 499.7 MB, free: 69.32 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006051/1.212, allocations: 3.616 MB / 0.4915 GB, free: 66.18 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005575/1.212, allocations: 77.7 kB / 0.4915 GB, free: 66.09 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002201/1.214, allocations: 3.178 MB / 0.4947 GB, free: 62.89 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0008638/1.215, allocations: 0.996 MB / 0.4956 GB, free: 61.9 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001639/1.216, allocations: 73.59 kB / 0.4957 GB, free: 61.83 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/1.216, allocations: 449.9 kB / 0.4961 GB, free: 61.39 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0021/1.218, allocations: 1.479 MB / 0.4976 GB, free: 59.91 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002483/1.22, allocations: 2.631 MB / 0.5001 GB, free: 56.78 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002496/1.223, allocations: 1.963 MB / 0.5021 GB, free: 54.8 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.757e-05/1.223, allocations: 12 kB / 0.5021 GB, free: 54.79 MB / 382.1 MB Notification: Performance of matching and sorting (n=476) (initialization): time 0.007497/1.23, allocations: 5.021 MB / 0.507 GB, free: 49.68 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.205e-05/1.23, allocations: 20 kB / 0.507 GB, free: 49.66 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.745e-05/1.23, allocations: 39.95 kB / 0.507 GB, free: 49.62 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008654/1.231, allocations: 401.8 kB / 0.5074 GB, free: 49.21 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002891/1.234, allocations: 0.8659 MB / 0.5083 GB, free: 48.35 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004964/1.239, allocations: 7.361 MB / 0.5154 GB, free: 40.47 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004159/1.243, allocations: 180 kB / 0.5156 GB, free: 40.29 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0004239/1.244, allocations: 160 kB / 0.5158 GB, free: 40.14 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 162 * 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 (451): * Single equations (assignments): 445 * 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: 4 * 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: 4 {(1,100.0%) 1,(1,100.0%) 5,(1,100.0%) 1,(3,77.8%) 14} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.004462/1.248, allocations: 2.14 MB / 0.5179 GB, free: 37.98 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0009932/1.249, allocations: 407 kB / 0.5182 GB, free: 37.58 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006997/1.256, allocations: 4.474 MB / 0.5226 GB, free: 33 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.257e-05/1.256, allocations: 28 kB / 0.5226 GB, free: 32.97 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.682e-05/1.256, allocations: 15.98 kB / 0.5227 GB, free: 32.96 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.507e-05/1.256, allocations: 15.94 kB / 0.5227 GB, free: 32.94 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01625/1.273, allocations: 10.48 MB / 0.5329 GB, free: 22.31 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.231e-05/1.273, allocations: 12.06 kB / 0.5329 GB, free: 22.3 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00168/1.274, allocations: 443.4 kB / 0.5333 GB, free: 21.87 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00185/1.276, allocations: 0.8726 MB / 0.5342 GB, free: 20.97 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001807/1.276, allocations: 75.97 kB / 0.5343 GB, free: 20.9 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01312/1.29, allocations: 16.19 MB / 0.5501 GB, free: 3.781 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.859e-06/1.29, allocations: 15.88 kB / 0.5501 GB, free: 3.766 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01058/1.3, allocations: 6.436 MB / 0.5564 GB, free: 13.12 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002643/1.303, allocations: 0.8085 MB / 0.5572 GB, free: 12.29 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007312/1.304, allocations: 64.19 kB / 0.5572 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001707/1.305, allocations: 151.9 kB / 0.5574 GB, free: 12.07 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005456/1.306, allocations: 227.1 kB / 0.5576 GB, free: 11.85 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001738/1.306, allocations: 87.97 kB / 0.5577 GB, free: 11.77 MB / 398.1 MB Notification: Performance of sorting global known variables: time 0.004345/1.31, allocations: 2.438 MB / 0.5601 GB, free: 9.348 MB / 398.1 MB Notification: Performance of sort global known variables: time 2.71e-07/1.31, allocations: 0 / 0.5601 GB, free: 9.348 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.004764/1.315, allocations: 1.214 MB / 0.5612 GB, free: 8.137 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 18 * Number of states: 14 (vfController3.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,smpm3.inertiaRotor.w,smpm3.stator.core.Phi.re,smpm3.stator.core.Phi.im,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpm3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController.x) * 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 (220): * Single equations (assignments): 213 * 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: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 7 {(1,100.0%) 5,(4,93.8%) 33,(1,100.0%) 1,(1,100.0%) 1,(1,100.0%) 8,(2,100.0%) 13,(2,100.0%) 13} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0005181/1.316, allocations: 205.4 kB / 0.5614 GB, free: 7.93 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.007022/1.323, allocations: 4.375 MB / 0.5657 GB, free: 3.441 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 4.929e-06/1.323, allocations: 0 / 0.5657 GB, free: 3.441 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004579/1.327, allocations: 3.001 MB / 0.5686 GB, free: 356 kB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005693/1.333, allocations: 1.064 MB / 0.5697 GB, free: 15.28 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02822/1.361, allocations: 15.12 MB / 0.5844 GB, free: 56 kB / 414.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004832/1.366, allocations: 4.343 MB / 0.5887 GB, free: 11.67 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.00402/1.37, allocations: 0.8942 MB / 0.5896 GB, free: 10.77 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008889/1.371, allocations: 275.4 kB / 0.5898 GB, free: 10.5 MB / 430.1 MB Notification: Performance of SimCode: time 1.943e-06/1.371, allocations: 4 kB / 0.5898 GB, free: 10.5 MB / 430.1 MB Notification: Performance of Templates: time 0.3691/1.74, allocations: 55.7 MB / 0.6442 GB, free: 135.1 MB / 446.1 MB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_MultiPhase.pipe 2>&1)