Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start,fileNamePrefix="Modelica_4_1_0-beta_om_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_1_0-beta_om_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 trunk/package.mo): time 0.001325/0.001325, allocations: 114.2 kB / 17.78 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001342/0.001342, allocations: 209.2 kB / 18.74 MB, free: 4.309 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.428/1.428, allocations: 227.7 MB / 247.2 MB, free: 10.16 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.001888/0.001888, allocations: 59.91 kB / 358.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2514/0.2533, allocations: 50.53 MB / 409.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.05099/0.3043, allocations: 45.96 MB / 455.1 MB, free: 3.184 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02866/0.333, allocations: 12.08 MB / 467.2 MB, free: 7.062 MB / 382.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01039/0.3434, allocations: 358.8 kB / 467.5 MB, free: 6.711 MB / 382.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03107/0.3745, allocations: 12.41 MB / 479.9 MB, free: 10.27 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01899/0.3936, allocations: 4.808 MB / 484.7 MB, free: 5.445 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.009875/0.4035, allocations: 3.047 MB / 487.8 MB, free: 2.41 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.02851/0.432, allocations: 21.09 MB / 0.4969 GB, free: 13.25 MB / 430.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07319/0.5052, allocations: 41.95 MB / 0.5379 GB, free: 3.035 MB / 462.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.463/0.9683, allocations: 10.94 MB / 0.5486 GB, free: 40.72 MB / 462.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01939/0.9877, allocations: 12.18 MB / 0.5605 GB, free: 39.5 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009488/0.9973, allocations: 3.141 MB / 0.5635 GB, free: 39.5 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01323/1.011, allocations: 3.569 MB / 0.567 GB, free: 39.5 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01101/1.022, allocations: 6.243 MB / 0.5731 GB, free: 38.82 MB / 462.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02182/1.043, allocations: 11.91 MB / 0.5848 GB, free: 32.34 MB / 462.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04232/1.086, allocations: 41.61 MB / 0.6254 GB, free: 400 kB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.011e-05/1.086, allocations: 4 kB / 0.6254 GB, free: 396 kB / 462.1 MB Notification: Performance of FrontEnd: time 2.455e-06/1.086, allocations: 0 / 0.6254 GB, free: 396 kB / 462.1 MB Notification: Performance of Transformations before backend: time 0.001439/1.087, allocations: 0 / 0.6254 GB, free: 396 kB / 462.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.07594/1.163, allocations: 24.38 MB / 0.6492 GB, free: 8.055 MB / 494.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.382e-05/1.163, allocations: 15.69 kB / 0.6492 GB, free: 8.043 MB / 494.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01066/1.174, allocations: 2.944 MB / 0.6521 GB, free: 5.102 MB / 494.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06302/1.237, allocations: 11.31 MB / 0.6631 GB, free: 9.906 MB / 0.4982 GB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03076/1.268, allocations: 13.53 MB / 0.6764 GB, free: 12.86 MB / 0.5138 GB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001641/1.27, allocations: 1.361 MB / 0.6777 GB, free: 11.51 MB / 0.5138 GB Notification: Performance of preOpt expandDerOperator (simulation): time 0.008509/1.278, allocations: 1.789 MB / 0.6794 GB, free: 9.742 MB / 0.5138 GB Notification: Performance of preOpt clockPartitioning (simulation): time 0.08199/1.36, allocations: 29.65 MB / 0.7084 GB, free: 12.02 MB / 0.545 GB Notification: Performance of preOpt findStateOrder (simulation): time 0.0008134/1.361, allocations: 27.84 kB / 0.7084 GB, free: 11.99 MB / 0.545 GB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.007334/1.368, allocations: 0.7386 MB / 0.7091 GB, free: 11.27 MB / 0.545 GB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001274/1.37, allocations: 0.9944 MB / 0.7101 GB, free: 10.27 MB / 0.545 GB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.066/1.436, allocations: 27.36 MB / 0.7368 GB, free: 14.9 MB / 0.5763 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.5998/2.036, allocations: 94.09 MB / 0.8287 GB, free: 141.7 MB / 0.5764 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03175/2.067, allocations: 52.62 MB / 0.8801 GB, free: 89.06 MB / 0.5764 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01044/2.078, allocations: 7.361 MB / 0.8873 GB, free: 81.7 MB / 0.5764 GB Notification: Performance of preOpt evalFunc (simulation): time 0.02981/2.108, allocations: 19.81 MB / 0.9066 GB, free: 62.18 MB / 0.5764 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.379e-05/2.108, allocations: 104.5 kB / 0.9067 GB, free: 62.07 MB / 0.5764 GB Notification: Performance of pre-optimization done (n=677): time 8.836e-06/2.108, allocations: 0 / 0.9067 GB, free: 62.07 MB / 0.5764 GB Notification: Performance of matching and sorting (n=685): time 0.08033/2.188, allocations: 38.64 MB / 0.9444 GB, free: 23.78 MB / 0.5764 GB Notification: Performance of inlineWhenForInitialization (initialization): time 5.769e-05/2.188, allocations: 147.1 kB / 0.9446 GB, free: 23.62 MB / 0.5764 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009171/2.197, allocations: 7.149 MB / 0.9516 GB, free: 16.57 MB / 0.5764 GB Notification: Performance of collectPreVariables (initialization): time 0.001147/2.199, allocations: 137.7 kB / 0.9517 GB, free: 16.43 MB / 0.5764 GB Notification: Performance of collectInitialEqns (initialization): time 0.003529/2.202, allocations: 8.088 MB / 0.9596 GB, free: 9.039 MB / 0.5764 GB Notification: Performance of collectInitialBindings (initialization): time 0.002209/2.204, allocations: 2.433 MB / 0.962 GB, free: 6.637 MB / 0.5764 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002625/2.207, allocations: 1.89 MB / 0.9638 GB, free: 4.734 MB / 0.5764 GB Notification: Performance of setup shared object (initialization): time 4.443e-05/2.207, allocations: 305.1 kB / 0.9641 GB, free: 4.434 MB / 0.5764 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.2446/2.452, allocations: 4.863 MB / 0.9689 GB, free: 185.1 MB / 0.5764 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01091/2.463, allocations: 8.351 MB / 0.977 GB, free: 180.9 MB / 0.5764 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.01564/2.478, allocations: 14.02 MB / 0.9907 GB, free: 171.9 MB / 0.5764 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001098/2.478, allocations: 34.5 kB / 0.9907 GB, free: 171.9 MB / 0.5764 GB Notification: Performance of matching and sorting (n=1235) (initialization): time 0.02872/2.507, allocations: 16.16 MB / 1.007 GB, free: 165.6 MB / 0.5764 GB Notification: Performance of prepare postOptimizeDAE: time 8.8e-05/2.507, allocations: 50.38 kB / 1.007 GB, free: 165.6 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001964/2.507, allocations: 116.9 kB / 1.007 GB, free: 165.6 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.005984/2.513, allocations: 2.576 MB / 1.009 GB, free: 164.9 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.007849/2.521, allocations: 2.109 MB / 1.011 GB, free: 164.7 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02946/2.551, allocations: 30.8 MB / 1.041 GB, free: 141.8 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.007768/2.559, allocations: 0.5241 MB / 1.042 GB, free: 141.4 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00178/2.56, allocations: 468.7 kB / 1.042 GB, free: 141 MB / 0.5764 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.0125/2.573, allocations: 6.76 MB / 1.049 GB, free: 135.3 MB / 0.5764 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002184/2.575, allocations: 0.8148 MB / 1.05 GB, free: 134.9 MB / 0.5764 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0217/2.597, allocations: 13.08 MB / 1.062 GB, free: 122.8 MB / 0.5764 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01165/2.609, allocations: 8.251 MB / 1.071 GB, free: 114.5 MB / 0.5764 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.085e-05/2.609, allocations: 31.98 kB / 1.071 GB, free: 114.4 MB / 0.5764 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001106/2.609, allocations: 31.88 kB / 1.071 GB, free: 114.4 MB / 0.5764 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.04738/2.656, allocations: 28.02 MB / 1.098 GB, free: 86.28 MB / 0.5764 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.549e-05/2.656, allocations: 4 kB / 1.098 GB, free: 86.27 MB / 0.5764 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0045/2.661, allocations: 1.124 MB / 1.099 GB, free: 85.15 MB / 0.5764 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.005897/2.667, allocations: 2.634 MB / 1.102 GB, free: 82.48 MB / 0.5764 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001269/2.668, allocations: 159.9 kB / 1.102 GB, free: 82.33 MB / 0.5764 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03056/2.699, allocations: 35.87 MB / 1.137 GB, free: 45.3 MB / 0.5764 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.398e-06/2.699, allocations: 4 kB / 1.137 GB, free: 45.3 MB / 0.5764 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0268/2.725, allocations: 18.87 MB / 1.155 GB, free: 26.26 MB / 0.5764 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004854/2.73, allocations: 1.81 MB / 1.157 GB, free: 24.43 MB / 0.5764 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002565/2.733, allocations: 139.9 kB / 1.157 GB, free: 24.3 MB / 0.5764 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005279/2.738, allocations: 387.6 kB / 1.158 GB, free: 23.92 MB / 0.5764 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001839/2.74, allocations: 0.5374 MB / 1.158 GB, free: 23.38 MB / 0.5764 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0007034/2.741, allocations: 205.3 kB / 1.158 GB, free: 23.18 MB / 0.5764 GB Notification: Performance of sorting global known variables: time 0.007843/2.749, allocations: 4.81 MB / 1.163 GB, free: 18.39 MB / 0.5764 GB Notification: Performance of sort global known variables: time 7.32e-07/2.749, allocations: 0 / 1.163 GB, free: 18.39 MB / 0.5764 GB Notification: Performance of remove unused functions: time 0.01336/2.762, allocations: 3.059 MB / 1.166 GB, free: 15.34 MB / 0.5764 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,5,100.0%), (1,5,100.0%), (2,4,100.0%), (2,4,100.0%), (2,4,100.0%), (1,8,100.0%), (1,1,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.2818/3.044, allocations: 19.7 MB / 1.185 GB, free: 186.1 MB / 0.592 GB Notification: Performance of simCode: created initialization part: time 0.02138/3.065, allocations: 13.41 MB / 1.198 GB, free: 184.5 MB / 0.592 GB Notification: Performance of simCode: created event and clocks part: time 1.178e-05/3.065, allocations: 2.078 kB / 1.198 GB, free: 184.5 MB / 0.592 GB Notification: Performance of simCode: created simulation system equations: time 0.01129/3.077, allocations: 7.603 MB / 1.206 GB, free: 180.8 MB / 0.592 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01294/3.09, allocations: 2.173 MB / 1.208 GB, free: 180.1 MB / 0.592 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1852/3.275, allocations: 103.5 MB / 1.309 GB, free: 96.68 MB / 0.592 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01821/3.293, allocations: 11.37 MB / 1.32 GB, free: 85.25 MB / 0.592 GB Notification: Performance of simCode: alias equations: time 0.01058/3.304, allocations: 3.293 MB / 1.323 GB, free: 81.95 MB / 0.592 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01207/3.316, allocations: 6.869 MB / 1.33 GB, free: 75.08 MB / 0.592 GB Notification: Performance of SimCode: time 1.313e-06/3.316, allocations: 0 / 1.33 GB, free: 75.08 MB / 0.592 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5988/3.915, allocations: 245.2 MB / 1.569 GB, free: 68.54 MB / 0.6077 GB Notification: Performance of buildModelFMU: Generate platform static: time 30.62/34.53, allocations: 4.656 kB / 1.569 GB, free: 68.54 MB / 0.6077 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_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_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMS_Start.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start.pipe 2>&1)