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.IMC_DOL.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.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL",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.002498/0.002498, allocations: 108 kB / 16.92 MB, free: 6.332 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.002783/0.002783, allocations: 191.4 kB / 17.85 MB, free: 5.414 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.48/2.48, allocations: 222.9 MB / 241.6 MB, free: 15.3 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001507/0.001507, allocations: 50.89 kB / 300.8 MB, free: 5.758 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1474/0.149, allocations: 49.44 MB / 350.2 MB, free: 4.309 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.4645/0.6136, allocations: 38.27 MB / 388.5 MB, free: 6.074 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0439/0.6576, allocations: 10.02 MB / 398.5 MB, free: 15.44 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01705/0.6747, allocations: 291 kB / 398.8 MB, free: 15.38 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.04872/0.7235, allocations: 10.18 MB / 408.9 MB, free: 8.285 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.03276/0.7563, allocations: 4.034 MB / 413 MB, free: 5.02 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01529/0.7716, allocations: 2.373 MB / 415.3 MB, free: 3.09 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.04674/0.8183, allocations: 16.27 MB / 431.6 MB, free: 4.406 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.1193/0.9378, allocations: 31.4 MB / 463 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02971/0.9676, allocations: 8.443 MB / 471.5 MB, free: 12.28 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.03621/1.004, allocations: 9.359 MB / 480.8 MB, free: 2.891 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.02352/1.027, allocations: 2.418 MB / 483.2 MB, free: 484 kB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.02115/1.049, allocations: 2.816 MB / 486.1 MB, free: 13.66 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01677/1.066, allocations: 4.809 MB / 490.9 MB, free: 8.836 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 0.03681/1.102, allocations: 9.199 MB / 0.4883 GB, free: 15.6 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 1.003/2.106, allocations: 31.93 MB / 0.5195 GB, free: 65.98 MB / 430.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.042e-05/2.106, allocations: 1.375 kB / 0.5195 GB, free: 65.98 MB / 430.1 MB Notification: Performance of FrontEnd: time 3.175e-06/2.106, allocations: 0 / 0.5195 GB, free: 65.98 MB / 430.1 MB Notification: Performance of Transformations before backend: time 0.001304/2.107, allocations: 4.156 kB / 0.5195 GB, free: 65.98 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: 3921 * Number of variables: 3921 Notification: Performance of Generate backend data structure: time 0.1226/2.23, allocations: 18.73 MB / 0.5378 GB, free: 61.32 MB / 430.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.489e-05/2.23, allocations: 14.94 kB / 0.5378 GB, free: 61.32 MB / 430.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01241/2.242, allocations: 2.291 MB / 0.5401 GB, free: 61.15 MB / 430.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0511/2.294, allocations: 8.254 MB / 0.5481 GB, free: 60.32 MB / 430.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02935/2.323, allocations: 9.915 MB / 0.5578 GB, free: 56.89 MB / 430.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001938/2.325, allocations: 1.061 MB / 0.5588 GB, free: 56.41 MB / 430.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.009455/2.334, allocations: 1.406 MB / 0.5602 GB, free: 55.04 MB / 430.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0761/2.411, allocations: 22.75 MB / 0.5824 GB, free: 32.23 MB / 430.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0009241/2.412, allocations: 26.19 kB / 0.5825 GB, free: 32.21 MB / 430.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.008182/2.42, allocations: 0.5731 MB / 0.583 GB, free: 31.64 MB / 430.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0008942/2.421, allocations: 0.7755 MB / 0.5838 GB, free: 30.87 MB / 430.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.05495/2.476, allocations: 21.01 MB / 0.6043 GB, free: 9.852 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1714/2.647, allocations: 72.9 MB / 0.6755 GB, free: 0.6523 MB / 494.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.05182/2.699, allocations: 42.4 MB / 0.7169 GB, free: 1.363 MB / 0.5294 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.4989/3.198, allocations: 5.201 MB / 0.722 GB, free: 211.7 MB / 0.5294 GB Notification: Performance of preOpt evalFunc (simulation): time 0.06135/3.259, allocations: 12.73 MB / 0.7344 GB, free: 207.4 MB / 0.5294 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001825/3.26, allocations: 94.89 kB / 0.7345 GB, free: 207.3 MB / 0.5294 GB Notification: Performance of pre-optimization done (n=498): time 3.087e-05/3.26, allocations: 0 / 0.7345 GB, free: 207.3 MB / 0.5294 GB Notification: Performance of matching and sorting (n=506): time 0.1129/3.373, allocations: 26.27 MB / 0.7601 GB, free: 195.9 MB / 0.5294 GB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001123/3.373, allocations: 131.7 kB / 0.7603 GB, free: 195.8 MB / 0.5294 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01652/3.389, allocations: 5.755 MB / 0.7659 GB, free: 193.7 MB / 0.5294 GB Notification: Performance of collectPreVariables (initialization): time 0.001899/3.391, allocations: 112.4 kB / 0.766 GB, free: 193.6 MB / 0.5294 GB Notification: Performance of collectInitialEqns (initialization): time 0.006674/3.398, allocations: 6.154 MB / 0.772 GB, free: 189 MB / 0.5294 GB Notification: Performance of collectInitialBindings (initialization): time 0.003783/3.402, allocations: 1.733 MB / 0.7737 GB, free: 187.6 MB / 0.5294 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.009966/3.412, allocations: 1.465 MB / 0.7751 GB, free: 186.3 MB / 0.5294 GB Notification: Performance of setup shared object (initialization): time 0.0001577/3.412, allocations: 311.6 kB / 0.7754 GB, free: 186 MB / 0.5294 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.01036/3.423, allocations: 3.625 MB / 0.779 GB, free: 182.9 MB / 0.5294 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.01359/3.436, allocations: 6.477 MB / 0.7853 GB, free: 175.8 MB / 0.5294 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02389/3.46, allocations: 10.76 MB / 0.7958 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0002132/3.461, allocations: 28 kB / 0.7958 GB, free: 163.8 MB / 0.5294 GB Notification: Performance of matching and sorting (n=962) (initialization): time 0.04168/3.502, allocations: 12.09 MB / 0.8076 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of prepare postOptimizeDAE: time 0.0002295/3.502, allocations: 44 kB / 0.8077 GB, free: 151.6 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002933/3.503, allocations: 92 kB / 0.8078 GB, free: 151.5 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.006933/3.51, allocations: 1.6 MB / 0.8093 GB, free: 149.9 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.01024/3.52, allocations: 1.657 MB / 0.8109 GB, free: 148.2 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.03293/3.553, allocations: 19.64 MB / 0.8301 GB, free: 127.9 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01305/3.566, allocations: 427.3 kB / 0.8305 GB, free: 127.5 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.002864/3.569, allocations: 364 kB / 0.8309 GB, free: 127.2 MB / 0.5294 GB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 423 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepQS[3].y,booleanStepQS[2].y,booleanStepQS[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 (865): * Single equations (assignments): 858 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 5 * 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): 5 systems {(1,1,100.0%), (12,64,52.1%), (1,5,100.0%), (1,1,100.0%), (1,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.02104/3.59, allocations: 5.198 MB / 0.836 GB, free: 121.9 MB / 0.5294 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.004192/3.594, allocations: 0.5926 MB / 0.8365 GB, free: 121.3 MB / 0.5294 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.03129/3.626, allocations: 9.368 MB / 0.8457 GB, free: 111.9 MB / 0.5294 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01198/3.638, allocations: 5.872 MB / 0.8514 GB, free: 106 MB / 0.5294 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.0001013/3.638, allocations: 24 kB / 0.8514 GB, free: 106 MB / 0.5294 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001288/3.638, allocations: 23.91 kB / 0.8515 GB, free: 105.9 MB / 0.5294 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.05936/3.697, allocations: 21.02 MB / 0.872 GB, free: 84.81 MB / 0.5294 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.371e-05/3.698, allocations: 4 kB / 0.872 GB, free: 84.81 MB / 0.5294 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005302/3.703, allocations: 0.8624 MB / 0.8728 GB, free: 83.95 MB / 0.5294 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006021/3.709, allocations: 1.656 MB / 0.8745 GB, free: 82.27 MB / 0.5294 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001465/3.71, allocations: 128 kB / 0.8746 GB, free: 82.15 MB / 0.5294 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02479/3.735, allocations: 23.21 MB / 0.8972 GB, free: 58.01 MB / 0.5294 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.876e-06/3.735, allocations: 11.94 kB / 0.8973 GB, free: 58 MB / 0.5294 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02576/3.761, allocations: 13.71 MB / 0.9106 GB, free: 43.93 MB / 0.5294 GB Notification: Performance of postOpt removeConstants (simulation): time 0.004906/3.766, allocations: 1.36 MB / 0.912 GB, free: 42.55 MB / 0.5294 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002101/3.768, allocations: 104 kB / 0.9121 GB, free: 42.45 MB / 0.5294 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004663/3.773, allocations: 287.7 kB / 0.9123 GB, free: 42.16 MB / 0.5294 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001309/3.774, allocations: 412.3 kB / 0.9127 GB, free: 41.76 MB / 0.5294 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.000375/3.775, allocations: 152.3 kB / 0.9129 GB, free: 41.61 MB / 0.5294 GB Notification: Performance of sorting global known variables: time 0.008209/3.783, allocations: 3.879 MB / 0.9167 GB, free: 37.76 MB / 0.5294 GB Notification: Performance of sort global known variables: time 7.91e-07/3.783, allocations: 4 kB / 0.9167 GB, free: 37.75 MB / 0.5294 GB Notification: Performance of remove unused functions: time 0.02185/3.805, allocations: 2.336 MB / 0.919 GB, free: 35.42 MB / 0.5294 GB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 27 * Number of states: 10 (imc.inertiaRotor.w,imc.stator.zeroInductor.i0,imc.stator.core.Phi.re,imc.stator.core.Phi.im,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,imc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,quadraticLoadTorque.phi,loadInertiaQS.w,quadraticLoadTorqueQS.phi,imcQS.rotorCage.port_p.reference.gamma) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],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 (438): * Single equations (assignments): 430 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 1 * 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%), (1,13,100.0%), (1,5,100.0%), (1,8,100.0%), (2,12,100.0%), (1,1,100.0%), (12,64,52.8%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.4437/4.248, allocations: 14.5 MB / 0.9331 GB, free: 193.5 MB / 0.5294 GB Notification: Performance of simCode: created initialization part: time 0.04732/4.296, allocations: 15.87 MB / 0.9486 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of simCode: created event and clocks part: time 2.105e-05/4.296, allocations: 2.344 kB / 0.9486 GB, free: 192.1 MB / 0.5294 GB Notification: Performance of simCode: created simulation system equations: time 0.01151/4.307, allocations: 5.432 MB / 0.9539 GB, free: 189.5 MB / 0.5294 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01367/4.321, allocations: 1.63 MB / 0.9555 GB, free: 189 MB / 0.5294 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2647/4.586, allocations: 101.3 MB / 1.054 GB, free: 98.18 MB / 0.5294 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02688/4.613, allocations: 8.843 MB / 1.063 GB, free: 89.68 MB / 0.5294 GB Notification: Performance of simCode: alias equations: time 0.01248/4.625, allocations: 2.535 MB / 1.066 GB, free: 87.13 MB / 0.5294 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01503/4.64, allocations: 5.162 MB / 1.071 GB, free: 81.97 MB / 0.5294 GB Notification: Performance of SimCode: time 2.655e-06/4.64, allocations: 0 / 1.071 GB, free: 81.97 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.9168/5.557, allocations: 189.5 MB / 1.256 GB, free: 123.9 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 22.37/27.93, allocations: 2.938 kB / 1.256 GB, free: 123.9 MB / 0.5294 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL_res.csv --start-time 0 --stop-time 1 --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_IMC_DOL.fmu > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1)