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.IMC_Initialize.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.IMC_Initialize,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize,fileNamePrefix="Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001745/0.001745, allocations: 113.6 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00187/0.00187, allocations: 203.9 kB / 18.74 MB, free: 4.332 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.479/1.479, allocations: 227.7 MB / 247.2 MB, free: 10.17 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.002548/0.002549, allocations: 63.89 kB / 358.6 MB, free: 13.18 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2866/0.2891, allocations: 50.55 MB / 409.1 MB, free: 1.312 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize): time 0.0403/0.3295, allocations: 33.49 MB / 442.6 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.02272/0.3523, allocations: 9.246 MB / 451.8 MB, free: 6.402 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.007169/0.3595, allocations: 243.2 kB / 452.1 MB, free: 6.164 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02053/0.3801, allocations: 7.96 MB / 460 MB, free: 14.18 MB / 382.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01446/0.3946, allocations: 3.668 MB / 463.7 MB, free: 10.5 MB / 382.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008133/0.4027, allocations: 2.14 MB / 465.8 MB, free: 8.371 MB / 382.1 MB Notification: Performance of NFFlatten.flatten: time 0.02028/0.423, allocations: 13.14 MB / 479 MB, free: 11.19 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.03622/0.4593, allocations: 22.49 MB / 0.4897 GB, free: 4.535 MB / 414.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01177/0.4711, allocations: 6.553 MB / 0.4961 GB, free: 13.96 MB / 430.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.013/0.4842, allocations: 7.378 MB / 0.5033 GB, free: 6.562 MB / 430.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005156/0.4894, allocations: 1.887 MB / 0.5052 GB, free: 4.676 MB / 430.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.007453/0.4968, allocations: 2.261 MB / 0.5074 GB, free: 2.414 MB / 430.1 MB Notification: Performance of NFScalarize.scalarize: time 0.006579/0.5035, allocations: 3.745 MB / 0.511 GB, free: 14.66 MB / 446.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01532/0.5188, allocations: 7.113 MB / 0.518 GB, free: 7.52 MB / 446.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5029/1.022, allocations: 25.11 MB / 0.5425 GB, free: 52.86 MB / 462.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.588e-06/1.022, allocations: 0.625 kB / 0.5425 GB, free: 52.86 MB / 462.1 MB Notification: Performance of FrontEnd: time 2.555e-06/1.022, allocations: 0 / 0.5425 GB, free: 52.86 MB / 462.1 MB Notification: Performance of Transformations before backend: time 0.0007581/1.023, allocations: 0.5312 kB / 0.5425 GB, free: 52.86 MB / 462.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 2952 * Number of variables: 2952 Notification: Performance of Generate backend data structure: time 0.04977/1.072, allocations: 14.88 MB / 0.557 GB, free: 48.72 MB / 462.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.391e-05/1.072, allocations: 9.781 kB / 0.557 GB, free: 48.72 MB / 462.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00597/1.078, allocations: 1.51 MB / 0.5585 GB, free: 48.61 MB / 462.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.03923/1.118, allocations: 6.8 MB / 0.5652 GB, free: 47.92 MB / 462.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01888/1.137, allocations: 8.171 MB / 0.5731 GB, free: 46.77 MB / 462.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009746/1.138, allocations: 0.7855 MB / 0.5739 GB, free: 46.75 MB / 462.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005047/1.143, allocations: 1.054 MB / 0.5749 GB, free: 46.68 MB / 462.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.04268/1.185, allocations: 17.26 MB / 0.5918 GB, free: 32.42 MB / 462.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0004809/1.186, allocations: 7.953 kB / 0.5918 GB, free: 32.41 MB / 462.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.003475/1.189, allocations: 446.8 kB / 0.5922 GB, free: 31.99 MB / 462.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005599/1.19, allocations: 0.6313 MB / 0.5928 GB, free: 31.36 MB / 462.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03161/1.222, allocations: 16.35 MB / 0.6088 GB, free: 14.99 MB / 462.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1072/1.329, allocations: 56.48 MB / 0.664 GB, free: 5.969 MB / 0.4982 GB Notification: Performance of preOpt comSubExp (simulation): time 0.03458/1.364, allocations: 31.42 MB / 0.6946 GB, free: 2.816 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.009134/1.373, allocations: 4.332 MB / 0.6989 GB, free: 14.48 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.0227/1.395, allocations: 10.78 MB / 0.7094 GB, free: 3.746 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.703e-05/1.396, allocations: 77.81 kB / 0.7095 GB, free: 3.66 MB / 0.545 GB Notification: Performance of pre-optimization done (n=398): time 6.352e-06/1.396, allocations: 4 kB / 0.7095 GB, free: 3.656 MB / 0.545 GB Notification: Performance of matching and sorting (n=423): time 0.05515/1.451, allocations: 21.84 MB / 0.7308 GB, free: 13.55 MB / 0.5763 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001106/1.451, allocations: 120.7 kB / 0.7309 GB, free: 13.42 MB / 0.5763 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008378/1.459, allocations: 4.715 MB / 0.7355 GB, free: 8.695 MB / 0.5763 GB Notification: Performance of collectPreVariables (initialization): time 0.0009172/1.46, allocations: 97.7 kB / 0.7356 GB, free: 8.594 MB / 0.5763 GB Notification: Performance of collectInitialEqns (initialization): time 0.003887/1.464, allocations: 4.823 MB / 0.7403 GB, free: 3.758 MB / 0.5763 GB Notification: Performance of collectInitialBindings (initialization): time 0.002157/1.466, allocations: 1.519 MB / 0.7418 GB, free: 2.258 MB / 0.5763 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.002278/1.469, allocations: 1.148 MB / 0.7429 GB, free: 1.098 MB / 0.5763 GB Notification: Performance of setup shared object (initialization): time 0.0001401/1.469, allocations: 303.5 kB / 0.7432 GB, free: 0.8008 MB / 0.5763 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004802/1.474, allocations: 2.924 MB / 0.7461 GB, free: 13.88 MB / 0.5919 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006694/1.48, allocations: 4.945 MB / 0.7509 GB, free: 8.031 MB / 0.5919 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.2817/1.762, allocations: 8.358 MB / 0.7591 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001004/1.762, allocations: 18.41 kB / 0.7591 GB, free: 229.2 MB / 0.5919 GB Notification: Performance of matching and sorting (n=764) (initialization): time 0.01935/1.781, allocations: 9.797 MB / 0.7687 GB, free: 227.1 MB / 0.5919 GB Notification: Performance of prepare postOptimizeDAE: time 6.352e-05/1.782, allocations: 31.69 kB / 0.7687 GB, free: 227.1 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001017/1.782, allocations: 67.22 kB / 0.7688 GB, free: 227.1 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.004416/1.786, allocations: 1.644 MB / 0.7704 GB, free: 226.8 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005091/1.791, allocations: 1.325 MB / 0.7716 GB, free: 226.6 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02076/1.812, allocations: 17.78 MB / 0.789 GB, free: 215.3 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005643/1.818, allocations: 325.8 kB / 0.7893 GB, free: 215.2 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001188/1.819, allocations: 288.7 kB / 0.7896 GB, free: 215.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 296 * 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 (671): * Single equations (assignments): 667 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(1,1,100.0%), (7,28,61.2%), (1,1,100.0%), (14,44,39.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.00688/1.826, allocations: 3.891 MB / 0.7934 GB, free: 213.2 MB / 0.5919 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001315/1.827, allocations: 0.5215 MB / 0.7939 GB, free: 213.2 MB / 0.5919 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01365/1.841, allocations: 7.782 MB / 0.8015 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.978e-05/1.841, allocations: 47.44 kB / 0.8015 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.121e-05/1.841, allocations: 23.47 kB / 0.8016 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.633e-05/1.841, allocations: 23.38 kB / 0.8016 GB, free: 209.9 MB / 0.5919 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03204/1.873, allocations: 17.51 MB / 0.8187 GB, free: 196.2 MB / 0.5919 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.032e-05/1.873, allocations: 8.156 kB / 0.8187 GB, free: 196.1 MB / 0.5919 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003309/1.877, allocations: 0.7318 MB / 0.8194 GB, free: 195.4 MB / 0.5919 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.004233/1.881, allocations: 1.55 MB / 0.8209 GB, free: 193.9 MB / 0.5919 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0009356/1.882, allocations: 108 kB / 0.821 GB, free: 193.7 MB / 0.5919 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01895/1.901, allocations: 21.23 MB / 0.8418 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.942e-06/1.901, allocations: 8 kB / 0.8418 GB, free: 171.8 MB / 0.5919 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01537/1.916, allocations: 11.51 MB / 0.853 GB, free: 160.2 MB / 0.5919 GB Notification: Performance of postOpt removeConstants (simulation): time 0.002665/1.919, allocations: 1.172 MB / 0.8542 GB, free: 159 MB / 0.5919 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001151/1.92, allocations: 95.92 kB / 0.8542 GB, free: 158.9 MB / 0.5919 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002764/1.923, allocations: 223.8 kB / 0.8545 GB, free: 158.7 MB / 0.5919 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0007411/1.924, allocations: 339.3 kB / 0.8548 GB, free: 158.4 MB / 0.5919 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002739/1.924, allocations: 128 kB / 0.8549 GB, free: 158.3 MB / 0.5919 GB Notification: Performance of sorting global known variables: time 0.00423/1.928, allocations: 3.194 MB / 0.858 GB, free: 155.1 MB / 0.5919 GB Notification: Performance of sort global known variables: time 3.61e-07/1.928, allocations: 0 / 0.858 GB, free: 155.1 MB / 0.5919 GB Notification: Performance of remove unused functions: time 0.007005/1.935, allocations: 1.867 MB / 0.8598 GB, free: 153.2 MB / 0.5919 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imcQS.inertiaRotor.w,imcQS.rotorCage.port_p.reference.gamma,loadInertiaQS.phi,imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.stator.stray.Phi.re,imc.stator.stray.Phi.im,loadInertia.phi) * 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 (364): * Single equations (assignments): 357 * 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,1,100.0%), (14,44,41.3%), (2,12,100.0%), (1,1,100.0%), (1,12,100.0%), (1,5,100.0%), (1,8,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01626/1.951, allocations: 12.26 MB / 0.8718 GB, free: 140.8 MB / 0.5919 GB Notification: Performance of simCode: created initialization part: time 0.01328/1.965, allocations: 8.166 MB / 0.8798 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of simCode: created event and clocks part: time 1.284e-05/1.965, allocations: 1 kB / 0.8798 GB, free: 132.6 MB / 0.5919 GB Notification: Performance of simCode: created simulation system equations: time 0.007573/1.972, allocations: 4.66 MB / 0.8843 GB, free: 127.8 MB / 0.5919 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.007617/1.98, allocations: 1.318 MB / 0.8856 GB, free: 126.5 MB / 0.5919 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1034/2.083, allocations: 64.17 MB / 0.9483 GB, free: 59.61 MB / 0.5919 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01085/2.094, allocations: 6.78 MB / 0.9549 GB, free: 52.78 MB / 0.5919 GB Notification: Performance of simCode: alias equations: time 0.005443/2.1, allocations: 1.861 MB / 0.9567 GB, free: 50.91 MB / 0.5919 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005924/2.106, allocations: 3.944 MB / 0.9606 GB, free: 46.97 MB / 0.5919 GB Notification: Performance of SimCode: time 1.583e-06/2.106, allocations: 0 / 0.9606 GB, free: 46.97 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.435/2.541, allocations: 151.1 MB / 1.108 GB, free: 143 MB / 0.5919 GB Notification: Performance of buildModelFMU: Generate platform static: time 23.06/25.6, allocations: 20.61 kB / 1.108 GB, free: 143 MB / 0.5919 GB (rm -f Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize_res.csv --start-time 0 --stop-time 1.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 1e-05 Modelica_4_1_0-beta_om_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Initialize.fmu > Modelica_4.1.0-beta.om_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Initialize.pipe 2>&1)