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.007147/0.007147, allocations: 99.05 kB / 15.73 MB, free: 6.055 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.001245/0.001245, allocations: 201.9 kB / 16.68 MB, free: 5.977 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.426/1.426, allocations: 205.1 MB / 222.5 MB, free: 4.543 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.001196/0.001196, allocations: 57.72 kB / 326.6 MB, free: 14.29 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09722/0.09843, allocations: 46.62 MB / 373.2 MB, free: 1.305 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMR_Inverter_MultiPhase): time 0.02425/0.1227, allocations: 23.71 MB / 396.9 MB, free: 9.484 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01445/0.1372, allocations: 6.55 MB / 403.5 MB, free: 2.914 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.005728/0.143, allocations: 143.4 kB / 403.6 MB, free: 2.773 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00576/0.1488, allocations: 1.568 MB / 405.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.009073/0.1579, allocations: 2.119 MB / 407.3 MB, free: 15.06 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005176/0.1631, allocations: 1.446 MB / 408.7 MB, free: 13.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.01181/0.175, allocations: 8.083 MB / 416.8 MB, free: 5.5 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01087/0.1859, allocations: 7.146 MB / 424 MB, free: 14.25 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0062/0.1921, allocations: 3.805 MB / 427.8 MB, free: 10.44 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007151/0.1993, allocations: 4.425 MB / 432.2 MB, free: 5.996 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003047/0.2024, allocations: 1.094 MB / 433.3 MB, free: 4.902 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003843/0.2063, allocations: 1.304 MB / 434.6 MB, free: 3.598 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003224/0.2095, allocations: 2.435 MB / 437 MB, free: 1.156 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007342/0.2169, allocations: 4.52 MB / 441.5 MB, free: 12.61 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2693/0.4862, allocations: 14.17 MB / 455.7 MB, free: 28.31 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.785e-06/0.4862, allocations: 0.5 kB / 455.7 MB, free: 28.31 MB / 382.1 MB Notification: Performance of FrontEnd: time 3.106e-06/0.4863, allocations: 0.5 kB / 455.7 MB, free: 28.31 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0005213/0.4868, allocations: 3 kB / 455.7 MB, free: 28.31 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.03435/0.5211, allocations: 8.831 MB / 464.5 MB, free: 25.58 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.757e-05/0.5212, allocations: 19.22 kB / 464.6 MB, free: 25.58 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01189/0.5331, allocations: 1.662 MB / 466.2 MB, free: 25.19 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0141/0.5473, allocations: 4.556 MB / 470.8 MB, free: 24.33 MB / 382.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001487/0.5488, allocations: 0.5087 MB / 471.3 MB, free: 24.31 MB / 382.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.004737/0.5536, allocations: 0.6855 MB / 472 MB, free: 24.3 MB / 382.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03142/0.585, allocations: 9.449 MB / 481.4 MB, free: 22.15 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0005172/0.5856, allocations: 2.812 kB / 481.4 MB, free: 22.15 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0029/0.5885, allocations: 286.6 kB / 481.7 MB, free: 21.93 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003766/0.5889, allocations: 331.7 kB / 482 MB, free: 21.9 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01888/0.6078, allocations: 8.05 MB / 490.1 MB, free: 18.08 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05185/0.6597, allocations: 28.41 MB / 0.5063 GB, free: 6.516 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01528/0.6751, allocations: 16.58 MB / 0.5225 GB, free: 4.07 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005075/0.6802, allocations: 2.919 MB / 0.5254 GB, free: 1.141 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01391/0.6941, allocations: 7.692 MB / 0.5329 GB, free: 9.414 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.283e-05/0.6942, allocations: 62.98 kB / 0.533 GB, free: 9.348 MB / 430.1 MB Notification: Performance of pre-optimization done (n=259): time 5.391e-06/0.6942, allocations: 0 / 0.533 GB, free: 9.348 MB / 430.1 MB Notification: Performance of matching and sorting (n=265): time 0.02424/0.7185, allocations: 10.99 MB / 0.5437 GB, free: 14.07 MB / 446.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.865e-05/0.7186, allocations: 77.5 kB / 0.5438 GB, free: 13.98 MB / 446.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005597/0.7242, allocations: 3.377 MB / 0.5471 GB, free: 10.61 MB / 446.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005299/0.7248, allocations: 65.7 kB / 0.5471 GB, free: 10.54 MB / 446.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002064/0.7268, allocations: 3.047 MB / 0.5501 GB, free: 7.48 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009845/0.7278, allocations: 0.9172 MB / 0.551 GB, free: 6.57 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0009123/0.7287, allocations: 0.5857 MB / 0.5516 GB, free: 5.977 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001427/0.7289, allocations: 309.1 kB / 0.5519 GB, free: 5.672 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002659/0.7316, allocations: 1.397 MB / 0.5532 GB, free: 4.273 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00311/0.7347, allocations: 2.424 MB / 0.5556 GB, free: 1.41 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005526/0.7402, allocations: 4.076 MB / 0.5596 GB, free: 12.98 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.625e-05/0.7403, allocations: 8 kB / 0.5596 GB, free: 12.97 MB / 462.1 MB Notification: Performance of matching and sorting (n=436) (initialization): time 0.007891/0.7482, allocations: 4.702 MB / 0.5642 GB, free: 8.391 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.791e-05/0.7482, allocations: 20 kB / 0.5642 GB, free: 8.371 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.496e-05/0.7483, allocations: 32 kB / 0.5642 GB, free: 8.34 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001017/0.7493, allocations: 396.8 kB / 0.5646 GB, free: 7.938 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002896/0.7522, allocations: 0.7949 MB / 0.5654 GB, free: 7.191 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006795/0.759, allocations: 7.969 MB / 0.5732 GB, free: 14.71 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003387/0.7625, allocations: 156 kB / 0.5733 GB, free: 14.56 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003821/0.7629, allocations: 148.6 kB / 0.5735 GB, free: 14.42 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.003774/0.7666, allocations: 2.072 MB / 0.5755 GB, free: 12.39 MB / 478.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008367/0.7675, allocations: 367.5 kB / 0.5758 GB, free: 12.02 MB / 478.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007152/0.7746, allocations: 4.22 MB / 0.58 GB, free: 7.73 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.052e-05/0.7747, allocations: 24 kB / 0.58 GB, free: 7.707 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.903e-05/0.7747, allocations: 12 kB / 0.58 GB, free: 7.695 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.526e-05/0.7747, allocations: 15.89 kB / 0.58 GB, free: 7.68 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01673/0.7915, allocations: 9.879 MB / 0.5897 GB, free: 13.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.55e-05/0.7915, allocations: 7.938 kB / 0.5897 GB, free: 13.7 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001699/0.7933, allocations: 405.8 kB / 0.59 GB, free: 13.33 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002106/0.7954, allocations: 0.8516 MB / 0.5909 GB, free: 12.46 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001975/0.7956, allocations: 71.97 kB / 0.5909 GB, free: 12.39 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01773/0.8133, allocations: 17.5 MB / 0.608 GB, free: 10.01 MB / 0.4981 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.372e-06/0.8134, allocations: 11.25 kB / 0.608 GB, free: 10 MB / 0.4981 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01178/0.8252, allocations: 6.024 MB / 0.6139 GB, free: 3.812 MB / 0.4981 GB Notification: Performance of postOpt removeConstants (simulation): time 0.0026/0.8278, allocations: 0.7425 MB / 0.6147 GB, free: 3.047 MB / 0.4981 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006172/0.8284, allocations: 59.98 kB / 0.6147 GB, free: 2.988 MB / 0.4981 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001807/0.8303, allocations: 135.9 kB / 0.6148 GB, free: 2.855 MB / 0.4981 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005616/0.8308, allocations: 200.8 kB / 0.615 GB, free: 2.66 MB / 0.4981 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001705/0.831, allocations: 86.48 kB / 0.6151 GB, free: 2.578 MB / 0.4981 GB Notification: Performance of sorting global known variables: time 0.003842/0.8349, allocations: 2.29 MB / 0.6173 GB, free: 308 kB / 0.4981 GB Notification: Performance of sort global known variables: time 2.11e-07/0.8349, allocations: 0 / 0.6173 GB, free: 308 kB / 0.4981 GB Notification: Performance of remove unused functions: time 0.004421/0.8393, allocations: 1.141 MB / 0.6185 GB, free: 15.16 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.0005461/0.8399, allocations: 222 kB / 0.6187 GB, free: 14.96 MB / 0.5137 GB Notification: Performance of simCode: created initialization part: time 0.007238/0.8471, allocations: 4.13 MB / 0.6227 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: created event and clocks part: time 1.185e-05/0.8472, allocations: 4 kB / 0.6227 GB, free: 10.82 MB / 0.5137 GB Notification: Performance of simCode: created simulation system equations: time 0.004826/0.852, allocations: 2.852 MB / 0.6255 GB, free: 7.91 MB / 0.5137 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005044/0.8571, allocations: 0.9963 MB / 0.6265 GB, free: 6.91 MB / 0.5137 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.231/1.088, allocations: 11.98 MB / 0.6382 GB, free: 188.4 MB / 0.5137 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005434/1.094, allocations: 4.221 MB / 0.6423 GB, free: 187.6 MB / 0.5137 GB Notification: Performance of simCode: alias equations: time 0.00306/1.097, allocations: 0.8373 MB / 0.6431 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007027/1.097, allocations: 253.6 kB / 0.6434 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of SimCode: time 1.042e-06/1.097, allocations: 3.188 kB / 0.6434 GB, free: 187.5 MB / 0.5137 GB Notification: Performance of Templates: time 0.0771/1.175, allocations: 53.35 MB / 0.6954 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)