Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_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.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase,tolerance=1e-06,outputFormat="empty",numberOfIntervals=30000,variableFilter="",fileNamePrefix="Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00645/0.00645, allocations: 101.8 kB / 15.73 MB, free: 6.031 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.001341/0.001341, allocations: 186.6 kB / 16.67 MB, free: 5.965 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.446/1.446, allocations: 205.1 MB / 222.5 MB, free: 4.523 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.00115/0.00115, allocations: 55.3 kB / 326.6 MB, free: 14.38 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1112/0.1123, allocations: 46.62 MB / 373.2 MB, free: 1.312 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.03875/0.1511, allocations: 23.72 MB / 396.9 MB, free: 9.488 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01941/0.1706, allocations: 6.55 MB / 403.5 MB, free: 2.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006416/0.177, allocations: 147.4 kB / 403.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.007156/0.1843, allocations: 1.626 MB / 405.2 MB, free: 1.137 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01416/0.1985, allocations: 2.186 MB / 407.4 MB, free: 14.94 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.006827/0.2053, allocations: 1.454 MB / 408.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01602/0.2214, allocations: 8.072 MB / 416.9 MB, free: 5.379 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0185/0.2399, allocations: 7.157 MB / 424.1 MB, free: 14.12 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009717/0.2497, allocations: 3.832 MB / 427.9 MB, free: 10.28 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01255/0.2623, allocations: 4.425 MB / 432.4 MB, free: 5.84 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005325/0.2677, allocations: 1.094 MB / 433.4 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006828/0.2745, allocations: 1.301 MB / 434.7 MB, free: 3.445 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006497/0.2811, allocations: 2.435 MB / 437.2 MB, free: 1.004 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01281/0.2939, allocations: 4.52 MB / 441.7 MB, free: 12.46 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.234/0.528, allocations: 14.17 MB / 455.9 MB, free: 28.43 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.416e-06/0.5281, allocations: 1.172 kB / 455.9 MB, free: 28.43 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.934e-06/0.5281, allocations: 0 / 455.9 MB, free: 28.43 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0004178/0.5285, allocations: 0.5 kB / 455.9 MB, free: 28.43 MB / 382.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1854 * Number of variables: 1854 Notification: Performance of Generate backend data structure: time 0.02495/0.5534, allocations: 8.833 MB / 464.7 MB, free: 25.7 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.58e-05/0.5535, allocations: 16.05 kB / 464.7 MB, free: 25.7 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.009734/0.5632, allocations: 1.66 MB / 466.4 MB, free: 25.3 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01007/0.5734, allocations: 4.559 MB / 470.9 MB, free: 24.45 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004463/0.5738, allocations: 0.5186 MB / 471.5 MB, free: 24.43 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.002376/0.5762, allocations: 0.677 MB / 472.1 MB, free: 24.42 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02048/0.5967, allocations: 9.446 MB / 481.6 MB, free: 22.24 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001872/0.5969, allocations: 5.797 kB / 481.6 MB, free: 22.24 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001109/0.5981, allocations: 287.1 kB / 481.9 MB, free: 22.02 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002757/0.5983, allocations: 328.2 kB / 482.2 MB, free: 22 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01439/0.6127, allocations: 8.053 MB / 490.2 MB, free: 18.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04702/0.6598, allocations: 28.41 MB / 0.5065 GB, free: 6.52 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01624/0.6761, allocations: 16.59 MB / 0.5227 GB, free: 4.074 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005497/0.6816, allocations: 2.916 MB / 0.5256 GB, free: 1.148 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01422/0.6959, allocations: 7.689 MB / 0.5331 GB, free: 9.426 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.555e-05/0.696, allocations: 64.61 kB / 0.5331 GB, free: 9.352 MB / 430.1 MB Notification: Performance of pre-optimization done (n=259): time 5.089e-06/0.696, allocations: 0 / 0.5331 GB, free: 9.352 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.0226/0.7186, allocations: 10.99 MB / 0.5439 GB, free: 14.08 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.313e-05/0.7187, allocations: 77.5 kB / 0.5439 GB, free: 13.99 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005319/0.724, allocations: 3.377 MB / 0.5472 GB, free: 10.62 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003551/0.7244, allocations: 65.7 kB / 0.5473 GB, free: 10.55 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00228/0.7267, allocations: 3.041 MB / 0.5503 GB, free: 7.484 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009557/0.7276, allocations: 0.9148 MB / 0.5512 GB, free: 6.578 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008824/0.7285, allocations: 0.5935 MB / 0.5517 GB, free: 5.977 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 8.981e-05/0.7286, allocations: 309.1 kB / 0.552 GB, free: 5.672 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002247/0.7309, allocations: 1.389 MB / 0.5534 GB, free: 4.281 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002897/0.7338, allocations: 2.432 MB / 0.5558 GB, free: 1.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005414/0.7392, allocations: 4.07 MB / 0.5597 GB, free: 12.99 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-05/0.7392, allocations: 12.58 kB / 0.5598 GB, free: 12.98 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.00833/0.7476, allocations: 4.702 MB / 0.5643 GB, free: 8.398 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.263e-05/0.7477, allocations: 20 kB / 0.5644 GB, free: 8.379 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.129e-05/0.7477, allocations: 32 kB / 0.5644 GB, free: 8.348 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001078/0.7488, allocations: 400.5 kB / 0.5648 GB, free: 7.941 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002899/0.7517, allocations: 0.7908 MB / 0.5655 GB, free: 7.199 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007225/0.759, allocations: 7.968 MB / 0.5733 GB, free: 14.72 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003836/0.7628, allocations: 156 kB / 0.5735 GB, free: 14.57 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002625/0.7631, allocations: 148 kB / 0.5736 GB, free: 14.43 MB / 478.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 146 * 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 (411): * Single equations (assignments): 405 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 4 * 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): 4 systems {(1,1,100.0%), (1,5,100.0%), (1,1,100.0%), (3,14,77.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.003755/0.7669, allocations: 2.079 MB / 0.5756 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007661/0.7676, allocations: 367.5 kB / 0.576 GB, free: 12.02 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0072/0.7748, allocations: 4.215 MB / 0.5801 GB, free: 7.734 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.865e-05/0.7749, allocations: 24 kB / 0.5801 GB, free: 7.711 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.9e-05/0.7749, allocations: 12.12 kB / 0.5801 GB, free: 7.699 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.882e-05/0.7749, allocations: 15.89 kB / 0.5802 GB, free: 7.684 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01628/0.7912, allocations: 9.877 MB / 0.5898 GB, free: 13.72 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.373e-05/0.7913, allocations: 7.938 kB / 0.5898 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001794/0.7931, allocations: 408.6 kB / 0.5902 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002179/0.7953, allocations: 0.8483 MB / 0.591 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001964/0.7955, allocations: 71.97 kB / 0.5911 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01825/0.8137, allocations: 17.5 MB / 0.6082 GB, free: 10.02 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.332e-06/0.8138, allocations: 7.969 kB / 0.6082 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01038/0.8242, allocations: 6.028 MB / 0.6141 GB, free: 3.824 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002024/0.8262, allocations: 0.7464 MB / 0.6148 GB, free: 3.055 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006258/0.8269, allocations: 60 kB / 0.6149 GB, free: 2.996 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001815/0.8287, allocations: 131.9 kB / 0.615 GB, free: 2.867 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004913/0.8292, allocations: 205.5 kB / 0.6152 GB, free: 2.668 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001517/0.8293, allocations: 79.98 kB / 0.6153 GB, free: 2.59 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003562/0.8329, allocations: 2.29 MB / 0.6175 GB, free: 320 kB / 0.4981 GB Notification: Performance of sort global known variables: time 6.41e-07/0.8329, allocations: 0 / 0.6175 GB, free: 320 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004817/0.8378, allocations: 1.141 MB / 0.6186 GB, free: 15.17 MB / 0.5137 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 14 (smrM.inertiaRotor.w,smrM.stator.core.Phi.re,smrM.stator.core.Phi.im,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smrM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smr3.inertiaRotor.w,smr3.stator.core.Phi.re,smr3.stator.core.Phi.im,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smr3.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,loadInertiaM.phi,loadInertia3.phi,vfController3.x,vfControllerM.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 (198): * Single equations (assignments): 191 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 7 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 7 systems {(1,5,100.0%), (4,33,93.8%), (1,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,12,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0005201/0.8383, allocations: 222.5 kB / 0.6188 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.006404/0.8447, allocations: 4.132 MB / 0.6229 GB, free: 10.83 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 7.885e-06/0.8447, allocations: 4.188 kB / 0.6229 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004393/0.8491, allocations: 2.851 MB / 0.6257 GB, free: 7.918 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005013/0.8542, allocations: 0.9967 MB / 0.6266 GB, free: 6.918 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2437/1.098, allocations: 11.99 MB / 0.6383 GB, free: 188.3 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.006304/1.104, allocations: 4.219 MB / 0.6425 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.003206/1.107, allocations: 0.84 MB / 0.6433 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008244/1.108, allocations: 252 kB / 0.6435 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of SimCode: time 1.754e-06/1.108, allocations: 0 / 0.6435 GB, free: 187.4 MB / 0.5137 GB Notification: Performance of Templates: time 0.08033/1.189, allocations: 53.34 MB / 0.6956 GB, free: 148 MB / 0.5137 GB make -j1 -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.makefile (rm -f Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; mkfifo Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe ; head -c 1048576 < Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe >> ../files/Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.sim & ./Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase -abortSlowSimulation -alarm=480 -lv LOG_STATS > Modelica_3.1_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase.pipe 2>&1)