Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_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_4_0_0_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.00169/0.00169, allocations: 108.1 kB / 16.92 MB, free: 5.762 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.002172/0.002172, allocations: 187.3 kB / 17.85 MB, free: 5.176 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.156/2.156, allocations: 222.9 MB / 241.5 MB, free: 15.24 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001371/0.001371, allocations: 42.52 kB / 300.7 MB, free: 5.789 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1824/0.1837, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.5387/0.7225, allocations: 45.26 MB / 395.5 MB, free: 1.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.05866/0.7812, allocations: 11.8 MB / 407.3 MB, free: 8.934 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.02553/0.8068, allocations: 354.4 kB / 407.6 MB, free: 8.859 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.05108/0.8579, allocations: 12.37 MB / 420 MB, free: 15.46 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03562/0.8936, allocations: 4.805 MB / 424.8 MB, free: 11.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01878/0.9124, allocations: 2.927 MB / 427.7 MB, free: 8.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.04929/0.9617, allocations: 20.8 MB / 448.5 MB, free: 3.438 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1277/1.089, allocations: 42.21 MB / 490.7 MB, free: 8.953 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.03194/1.121, allocations: 10.9 MB / 0.4899 GB, free: 14.02 MB / 414.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03684/1.158, allocations: 12.05 MB / 0.5016 GB, free: 1.934 MB / 414.1 MB Notification: Performance of NFPackage.collectConstants: time 0.01662/1.175, allocations: 3.133 MB / 0.5047 GB, free: 14.8 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02369/1.199, allocations: 3.55 MB / 0.5082 GB, free: 11.25 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.02002/1.219, allocations: 6.25 MB / 0.5143 GB, free: 4.984 MB / 430.1 MB Notification: Performance of NFVerifyModel.verify: time 0.9555/2.174, allocations: 11.9 MB / 0.5259 GB, free: 59.54 MB / 430.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1072/2.282, allocations: 41.2 MB / 0.5661 GB, free: 46.16 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.198e-05/2.282, allocations: 4.781 kB / 0.5661 GB, free: 46.15 MB / 430.1 MB Notification: Performance of FrontEnd: time 6.442e-06/2.282, allocations: 1.094 kB / 0.5661 GB, free: 46.15 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.002372/2.284, allocations: 1.125 kB / 0.5661 GB, free: 46.15 MB / 430.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 5030 * Number of variables: 5030 Notification: Performance of Generate backend data structure: time 0.1611/2.445, allocations: 23.94 MB / 0.5895 GB, free: 31.45 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.647e-05/2.445, allocations: 14.8 kB / 0.5895 GB, free: 31.45 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01997/2.465, allocations: 2.952 MB / 0.5924 GB, free: 29.59 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.07015/2.536, allocations: 11.3 MB / 0.6034 GB, free: 19.12 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03783/2.573, allocations: 13.05 MB / 0.6162 GB, free: 6.641 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.00232/2.576, allocations: 1.363 MB / 0.6175 GB, free: 5.293 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01547/2.591, allocations: 1.793 MB / 0.6193 GB, free: 3.516 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1573/2.749, allocations: 29.59 MB / 0.6481 GB, free: 5.844 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001808/2.751, allocations: 23.36 kB / 0.6482 GB, free: 5.824 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.01339/2.764, allocations: 0.7492 MB / 0.6489 GB, free: 5.094 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001318/2.765, allocations: 0.9791 MB / 0.6499 GB, free: 4.109 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.09365/2.859, allocations: 27.29 MB / 0.6765 GB, free: 8.805 MB / 494.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.6937/3.553, allocations: 94.02 MB / 0.7683 GB, free: 125.8 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.06292/3.616, allocations: 51.98 MB / 0.8191 GB, free: 75.69 MB / 0.4982 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.02113/3.637, allocations: 7.267 MB / 0.8262 GB, free: 68.41 MB / 0.4982 GB Notification: Performance of preOpt evalFunc (simulation): time 0.07342/3.711, allocations: 20.09 MB / 0.8458 GB, free: 48.57 MB / 0.4982 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001076/3.711, allocations: 108.5 kB / 0.8459 GB, free: 48.46 MB / 0.4982 GB Notification: Performance of pre-optimization done (n=677): time 1.222e-05/3.711, allocations: 0 / 0.8459 GB, free: 48.46 MB / 0.4982 GB Notification: Performance of matching and sorting (n=685): time 0.1392/3.85, allocations: 38.13 MB / 0.8831 GB, free: 9.922 MB / 0.4982 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001488/3.85, allocations: 147.1 kB / 0.8833 GB, free: 9.758 MB / 0.4982 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.03527/3.885, allocations: 7.101 MB / 0.8902 GB, free: 2.676 MB / 0.4982 GB Notification: Performance of collectPreVariables (initialization): time 0.002945/3.888, allocations: 137.7 kB / 0.8904 GB, free: 2.535 MB / 0.4982 GB Notification: Performance of collectInitialEqns (initialization): time 0.4908/4.379, allocations: 7.796 MB / 0.898 GB, free: 161.7 MB / 0.4982 GB Notification: Performance of collectInitialBindings (initialization): time 0.003783/4.383, allocations: 2.322 MB / 0.9002 GB, free: 160.3 MB / 0.4982 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.008096/4.391, allocations: 1.869 MB / 0.9021 GB, free: 160.1 MB / 0.4982 GB Notification: Performance of setup shared object (initialization): time 7.721e-05/4.391, allocations: 307.8 kB / 0.9024 GB, free: 159.8 MB / 0.4982 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01663/4.408, allocations: 4.855 MB / 0.9071 GB, free: 159.8 MB / 0.4982 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.02606/4.434, allocations: 8.342 MB / 0.9152 GB, free: 155.6 MB / 0.4982 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.03594/4.47, allocations: 13.99 MB / 0.9289 GB, free: 148 MB / 0.4982 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.000465/4.471, allocations: 34.78 kB / 0.9289 GB, free: 148 MB / 0.4982 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.06004/4.531, allocations: 16.07 MB / 0.9446 GB, free: 141.3 MB / 0.4982 GB Notification: Performance of prepare postOptimizeDAE: time 0.0003448/4.531, allocations: 52 kB / 0.9447 GB, free: 141.2 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.000366/4.532, allocations: 112 kB / 0.9448 GB, free: 141.1 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.01155/4.543, allocations: 2.596 MB / 0.9473 GB, free: 139.1 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01041/4.554, allocations: 2.1 MB / 0.9494 GB, free: 137.3 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03649/4.59, allocations: 30.79 MB / 0.9794 GB, free: 108.1 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01219/4.602, allocations: 0.5305 MB / 0.98 GB, free: 107.6 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.004017/4.606, allocations: 464 kB / 0.9804 GB, free: 107.1 MB / 0.4982 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 511 * 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 (1089): * Single equations (assignments): 1079 * 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.02354/4.63, allocations: 6.753 MB / 0.987 GB, free: 100.4 MB / 0.4982 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003278/4.633, allocations: 0.768 MB / 0.9878 GB, free: 99.6 MB / 0.4982 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02573/4.659, allocations: 13.09 MB / 1.001 GB, free: 86.3 MB / 0.4982 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01484/4.674, allocations: 8.216 MB / 1.009 GB, free: 77.99 MB / 0.4982 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.493e-05/4.674, allocations: 28 kB / 1.009 GB, free: 77.96 MB / 0.4982 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001644/4.674, allocations: 31.88 kB / 1.009 GB, free: 77.93 MB / 0.4982 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07883/4.753, allocations: 27.98 MB / 1.036 GB, free: 49.75 MB / 0.4982 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.997e-05/4.753, allocations: 6.344 kB / 1.036 GB, free: 49.75 MB / 0.4982 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.006497/4.76, allocations: 1.108 MB / 1.037 GB, free: 48.64 MB / 0.4982 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.007708/4.768, allocations: 2.655 MB / 1.04 GB, free: 45.95 MB / 0.4982 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.002599/4.77, allocations: 152 kB / 1.04 GB, free: 45.8 MB / 0.4982 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.4771/5.247, allocations: 35.83 MB / 1.075 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.564e-05/5.247, allocations: 7.594 kB / 1.075 GB, free: 144.6 MB / 0.4982 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.06955/5.317, allocations: 18.77 MB / 1.093 GB, free: 143.4 MB / 0.4982 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006959/5.324, allocations: 1.754 MB / 1.095 GB, free: 143.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.004232/5.328, allocations: 129.8 kB / 1.095 GB, free: 143.3 MB / 0.4982 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.008499/5.337, allocations: 397.3 kB / 1.095 GB, free: 143.3 MB / 0.4982 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.003422/5.34, allocations: 0.5207 MB / 1.096 GB, free: 143.3 MB / 0.4982 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.001879/5.342, allocations: 195.8 kB / 1.096 GB, free: 143.3 MB / 0.4982 GB Notification: Performance of sorting global known variables: time 0.01816/5.36, allocations: 4.788 MB / 1.101 GB, free: 143.1 MB / 0.4982 GB Notification: Performance of sort global known variables: time 1.363e-06/5.361, allocations: 0 / 1.101 GB, free: 143.1 MB / 0.4982 GB Notification: Performance of remove unused functions: time 0.03127/5.392, allocations: 3.055 MB / 1.104 GB, free: 143.1 MB / 0.4982 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.stray.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.05463/5.447, allocations: 19.61 MB / 1.123 GB, free: 134.7 MB / 0.4982 GB Notification: Performance of simCode: created initialization part: time 0.07293/5.52, allocations: 24.86 MB / 1.147 GB, free: 111.5 MB / 0.4982 GB Notification: Performance of simCode: created event and clocks part: time 1.623e-05/5.52, allocations: 0 / 1.147 GB, free: 111.5 MB / 0.4982 GB Notification: Performance of simCode: created simulation system equations: time 0.01335/5.533, allocations: 7.561 MB / 1.154 GB, free: 104.7 MB / 0.4982 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01648/5.549, allocations: 2.147 MB / 1.157 GB, free: 103 MB / 0.4982 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.6544/6.204, allocations: 135 MB / 1.288 GB, free: 170.5 MB / 0.5138 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.04022/6.244, allocations: 11.35 MB / 1.3 GB, free: 169.3 MB / 0.5138 GB Notification: Performance of simCode: alias equations: time 0.01793/6.262, allocations: 3.285 MB / 1.303 GB, free: 169 MB / 0.5138 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.023/6.285, allocations: 6.823 MB / 1.309 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of SimCode: time 2.184e-06/6.285, allocations: 0 / 1.309 GB, free: 163.1 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.7531/7.038, allocations: 248.3 MB / 1.552 GB, free: 97.59 MB / 0.5138 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.91/30.95, allocations: 13.88 kB / 1.552 GB, free: 97.59 MB / 0.5138 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1)