Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.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: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001324/0.001325, allocations: 110.5 kB / 17.73 MB, free: 5.316 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.001256/0.001256, allocations: 187 kB / 18.67 MB, free: 4.387 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.478/1.478, allocations: 205.1 MB / 224.5 MB, free: 12.21 MB / 190.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.001654/0.001654, allocations: 47.92 kB / 328.1 MB, free: 3.746 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09345/0.09511, allocations: 46.62 MB / 374.7 MB, free: 5.016 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.2302/0.3253, allocations: 45.33 MB / 420 MB, free: 14.57 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03205/0.3574, allocations: 11.74 MB / 431.8 MB, free: 4.992 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0107/0.3682, allocations: 300.8 kB / 432.1 MB, free: 4.922 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02992/0.3982, allocations: 12.38 MB / 444.4 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01899/0.4172, allocations: 4.838 MB / 449.3 MB, free: 5.164 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01053/0.4277, allocations: 2.977 MB / 452.3 MB, free: 2.188 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.03392/0.4617, allocations: 21.09 MB / 473.3 MB, free: 13.02 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07577/0.5375, allocations: 41.91 MB / 0.5032 GB, free: 2.84 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02034/0.5579, allocations: 11 MB / 0.5139 GB, free: 7.812 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02161/0.5795, allocations: 12.11 MB / 0.5257 GB, free: 11.66 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009194/0.5888, allocations: 3.141 MB / 0.5288 GB, free: 8.523 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01292/0.6017, allocations: 3.55 MB / 0.5323 GB, free: 4.973 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01213/0.6139, allocations: 6.313 MB / 0.5384 GB, free: 14.64 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02703/0.641, allocations: 11.98 MB / 0.5501 GB, free: 2.613 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.4726/1.114, allocations: 41.49 MB / 0.5907 GB, free: 60.82 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.144e-06/1.114, allocations: 0 / 0.5907 GB, free: 60.82 MB / 478.1 MB Notification: Performance of FrontEnd: time 3.216e-06/1.114, allocations: 0.8125 kB / 0.5907 GB, free: 60.82 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001297/1.115, allocations: 0 / 0.5907 GB, free: 60.82 MB / 478.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5087 * Number of variables: 5087 Notification: Performance of Generate backend data structure: time 0.09288/1.208, allocations: 24.51 MB / 0.6146 GB, free: 48.38 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.195e-05/1.208, allocations: 14.92 kB / 0.6146 GB, free: 48.37 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0149/1.223, allocations: 2.979 MB / 0.6175 GB, free: 46.5 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06724/1.29, allocations: 12.43 MB / 0.6297 GB, free: 39.34 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03061/1.321, allocations: 12.15 MB / 0.6415 GB, free: 27.73 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001602/1.322, allocations: 1.373 MB / 0.6429 GB, free: 26.37 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009655/1.332, allocations: 1.814 MB / 0.6446 GB, free: 24.57 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08724/1.419, allocations: 30.03 MB / 0.674 GB, free: 10.48 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001236/1.421, allocations: 27.55 kB / 0.674 GB, free: 10.45 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01079/1.432, allocations: 0.7487 MB / 0.6747 GB, free: 9.723 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001395/1.433, allocations: 1.022 MB / 0.6757 GB, free: 8.695 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07578/1.509, allocations: 27.96 MB / 0.703 GB, free: 12.72 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.4377/1.947, allocations: 94.49 MB / 0.7953 GB, free: 146.3 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03865/1.985, allocations: 63.43 MB / 0.8572 GB, free: 93.59 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01274/1.998, allocations: 7.464 MB / 0.8645 GB, free: 90.75 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03779/2.036, allocations: 20.54 MB / 0.8846 GB, free: 73.2 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.073e-05/2.036, allocations: 112.5 kB / 0.8847 GB, free: 73.08 MB / 0.545 GB Notification: Performance of pre-optimization done (n=677): time 8.836e-06/2.036, allocations: 0 / 0.8847 GB, free: 73.08 MB / 0.545 GB Notification: Performance of matching and sorting (n=685): time 0.08883/2.125, allocations: 38.68 MB / 0.9225 GB, free: 34.04 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.477e-05/2.125, allocations: 155.1 kB / 0.9226 GB, free: 33.87 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01276/2.138, allocations: 7.265 MB / 0.9297 GB, free: 26.63 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001823/2.14, allocations: 137.7 kB / 0.9298 GB, free: 26.49 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.004569/2.144, allocations: 8.211 MB / 0.9379 GB, free: 18.26 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.002921/2.147, allocations: 2.442 MB / 0.9403 GB, free: 15.85 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00364/2.151, allocations: 1.938 MB / 0.9421 GB, free: 13.9 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 5.608e-05/2.151, allocations: 305.1 kB / 0.9424 GB, free: 13.6 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.007061/2.158, allocations: 4.923 MB / 0.9472 GB, free: 8.672 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.2579/2.416, allocations: 8.623 MB / 0.9557 GB, free: 172.5 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02077/2.437, allocations: 14.37 MB / 0.9697 GB, free: 167.3 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001484/2.437, allocations: 36.81 kB / 0.9697 GB, free: 167.3 MB / 0.545 GB Notification: Performance of matching and sorting (n=1274) (initialization): time 0.03441/2.471, allocations: 16.43 MB / 0.9858 GB, free: 163.8 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001034/2.471, allocations: 58.16 kB / 0.9858 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001847/2.472, allocations: 122.9 kB / 0.9859 GB, free: 163.8 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006187/2.478, allocations: 2.596 MB / 0.9885 GB, free: 163 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.008286/2.486, allocations: 2.185 MB / 0.9906 GB, free: 162.8 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03021/2.516, allocations: 30.8 MB / 1.021 GB, free: 139.6 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.009164/2.526, allocations: 0.5393 MB / 1.021 GB, free: 139.2 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002222/2.528, allocations: 480.7 kB / 1.022 GB, free: 138.8 MB / 0.545 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 550 * Number of states: 0 () * Number of discrete variables: 12 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[1].y,rheostatQS.booleanStep[3].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[1].y,rheostatM.booleanStep[3].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[1].y,idealCloser.control[3],idealCloser.control[2],idealCloser.control[1]) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (1128): * Single equations (assignments): 1118 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 1 system {(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): 8 systems {(1,1,100.0%), (18,100,38.3%), (1,5,100.0%), (1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.01454/2.542, allocations: 6.832 MB / 1.028 GB, free: 133 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002297/2.545, allocations: 0.815 MB / 1.029 GB, free: 132.6 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02252/2.567, allocations: 13.09 MB / 1.042 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01315/2.58, allocations: 8.219 MB / 1.05 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.581e-05/2.581, allocations: 31.98 kB / 1.05 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001477/2.581, allocations: 35.88 kB / 1.05 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05678/2.637, allocations: 28.02 MB / 1.077 GB, free: 86.25 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.021e-05/2.638, allocations: 4 kB / 1.077 GB, free: 86.24 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005221/2.643, allocations: 1.104 MB / 1.078 GB, free: 85.14 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.00651/2.649, allocations: 2.655 MB / 1.081 GB, free: 82.45 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001355/2.651, allocations: 156 kB / 1.081 GB, free: 82.3 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03061/2.681, allocations: 35.85 MB / 1.116 GB, free: 45.32 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.577e-06/2.681, allocations: 4 kB / 1.116 GB, free: 45.32 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02886/2.71, allocations: 18.84 MB / 1.135 GB, free: 26.34 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.005199/2.715, allocations: 1.809 MB / 1.136 GB, free: 24.52 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002458/2.718, allocations: 131.9 kB / 1.137 GB, free: 24.39 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005324/2.723, allocations: 391.6 kB / 1.137 GB, free: 24.01 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00175/2.725, allocations: 0.5258 MB / 1.137 GB, free: 23.48 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0006963/2.726, allocations: 199.9 kB / 1.138 GB, free: 23.29 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.008411/2.734, allocations: 4.875 MB / 1.142 GB, free: 18.44 MB / 0.545 GB Notification: Performance of sort global known variables: time 4.91e-07/2.734, allocations: 1.312 kB / 1.142 GB, free: 18.44 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01389/2.748, allocations: 3.082 MB / 1.145 GB, free: 15.36 MB / 0.545 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 15 * Number of states: 11 (ims.inertiaRotor.w,ims.stator.zeroInductor.i0,ims.stator.core.Phi.re,ims.stator.core.Phi.im,ims.rotor.zeroInductor.i0,ims.rotor.core.Phi.re,ims.rotor.core.Phi.im,quadraticLoadTorque.phi,imsQS.inertiaRotor.w,imsQS.rotor.strayReluctance.port_p.reference.gamma,quadraticLoadTorqueQS.phi) * Number of discrete variables: 12 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],rheostatM.booleanStep[1].y,rheostatM.booleanStep[2].y,rheostatM.booleanStep[3].y,rheostatQS.booleanStep[1].y,rheostatQS.booleanStep[2].y,rheostatQS.booleanStep[3].y,booleanStepQS[1].y,booleanStepQS[2].y,booleanStepQS[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (560): * Single equations (assignments): 548 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 11 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 11 systems {(1,1,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,5,100.0%), (1,8,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (18,100,41.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.2637/3.012, allocations: 19.65 MB / 1.165 GB, free: 157.7 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02105/3.033, allocations: 13.55 MB / 1.178 GB, free: 156 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.329e-05/3.033, allocations: 2.656 kB / 1.178 GB, free: 156 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01169/3.045, allocations: 7.606 MB / 1.185 GB, free: 154.5 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01466/3.059, allocations: 2.147 MB / 1.187 GB, free: 154.1 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1803/3.24, allocations: 105.5 MB / 1.29 GB, free: 66.29 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02084/3.261, allocations: 11.43 MB / 1.301 GB, free: 54.8 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.008938/3.27, allocations: 3.364 MB / 1.305 GB, free: 51.43 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.009951/3.28, allocations: 6.839 MB / 1.311 GB, free: 44.59 MB / 0.545 GB Notification: Performance of SimCode: time 1.092e-06/3.28, allocations: 0 / 1.311 GB, free: 44.59 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.561/3.841, allocations: 248 MB / 1.554 GB, free: 42.33 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 33.56/37.4, allocations: 8.297 kB / 1.554 GB, free: 42.32 MB / 0.5607 GB (rm -f Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_3_2_3_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_3.2.3_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1)