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.001443/0.001443, allocations: 110.5 kB / 17.73 MB, free: 5.359 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.00145/0.001451, allocations: 187.1 kB / 18.66 MB, free: 4.438 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.549/1.549, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001333/0.001333, allocations: 52.3 kB / 328.1 MB, free: 3.777 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1008/0.1021, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMS_Start): time 0.2727/0.3749, allocations: 45.34 MB / 420 MB, free: 14.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.03281/0.4077, allocations: 11.74 MB / 431.8 MB, free: 5.031 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.01492/0.4227, allocations: 297.2 kB / 432 MB, free: 4.965 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.03143/0.4542, allocations: 12.48 MB / 444.5 MB, free: 9.969 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0221/0.4764, allocations: 4.942 MB / 449.5 MB, free: 5.004 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.01339/0.4898, allocations: 2.978 MB / 452.4 MB, free: 2.027 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.03476/0.5245, allocations: 21.1 MB / 473.6 MB, free: 12.84 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.07832/0.6029, allocations: 41.89 MB / 0.5034 GB, free: 2.684 MB / 430.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.02121/0.6242, allocations: 11.05 MB / 0.5142 GB, free: 7.609 MB / 446.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.02218/0.6464, allocations: 12.11 MB / 0.526 GB, free: 11.46 MB / 462.1 MB Notification: Performance of NFPackage.collectConstants: time 0.009957/0.6564, allocations: 3.145 MB / 0.529 GB, free: 8.312 MB / 462.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01392/0.6703, allocations: 3.546 MB / 0.5325 GB, free: 4.766 MB / 462.1 MB Notification: Performance of NFScalarize.scalarize: time 0.01204/0.6824, allocations: 6.317 MB / 0.5387 GB, free: 14.43 MB / 478.1 MB Notification: Performance of NFVerifyModel.verify: time 0.02964/0.7121, allocations: 11.97 MB / 0.5504 GB, free: 2.418 MB / 478.1 MB Notification: Performance of NFConvertDAE.convert: time 0.5955/1.308, allocations: 41.5 MB / 0.5909 GB, free: 60.93 MB / 478.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.978e-06/1.308, allocations: 0 / 0.5909 GB, free: 60.93 MB / 478.1 MB Notification: Performance of FrontEnd: time 2.585e-06/1.308, allocations: 3.75 kB / 0.5909 GB, free: 60.93 MB / 478.1 MB Notification: Performance of Transformations before backend: time 0.001573/1.309, allocations: 4.281 kB / 0.5909 GB, free: 60.93 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.09906/1.408, allocations: 24.51 MB / 0.6148 GB, free: 48.55 MB / 478.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.011e-05/1.408, allocations: 14.33 kB / 0.6149 GB, free: 48.55 MB / 478.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.01668/1.425, allocations: 2.972 MB / 0.6178 GB, free: 46.68 MB / 478.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.06937/1.495, allocations: 12.43 MB / 0.6299 GB, free: 39.51 MB / 478.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.03376/1.528, allocations: 12.15 MB / 0.6418 GB, free: 27.89 MB / 478.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.001268/1.53, allocations: 1.368 MB / 0.6431 GB, free: 26.54 MB / 478.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.01164/1.541, allocations: 1.815 MB / 0.6449 GB, free: 24.74 MB / 478.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0948/1.636, allocations: 30.04 MB / 0.6742 GB, free: 10.64 MB / 494.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.001003/1.637, allocations: 23.91 kB / 0.6742 GB, free: 10.62 MB / 494.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0125/1.65, allocations: 0.7429 MB / 0.675 GB, free: 9.891 MB / 494.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.001454/1.651, allocations: 1.022 MB / 0.676 GB, free: 8.863 MB / 494.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.07036/1.722, allocations: 27.95 MB / 0.7032 GB, free: 12.89 MB / 0.5138 GB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.534/2.256, allocations: 94.5 MB / 0.7955 GB, free: 146 MB / 0.545 GB Notification: Performance of preOpt comSubExp (simulation): time 0.0413/2.297, allocations: 63.43 MB / 0.8575 GB, free: 93.42 MB / 0.545 GB Notification: Performance of preOpt resolveLoops (simulation): time 0.01251/2.309, allocations: 7.463 MB / 0.8648 GB, free: 90.59 MB / 0.545 GB Notification: Performance of preOpt evalFunc (simulation): time 0.03812/2.348, allocations: 20.54 MB / 0.8848 GB, free: 73.36 MB / 0.545 GB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.547e-05/2.348, allocations: 112.5 kB / 0.8849 GB, free: 73.24 MB / 0.545 GB Notification: Performance of pre-optimization done (n=677): time 8.746e-06/2.348, allocations: 0 / 0.8849 GB, free: 73.24 MB / 0.545 GB Notification: Performance of matching and sorting (n=685): time 0.08314/2.431, allocations: 38.69 MB / 0.9227 GB, free: 34.2 MB / 0.545 GB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/2.431, allocations: 151.1 kB / 0.9229 GB, free: 34.03 MB / 0.545 GB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01089/2.442, allocations: 7.261 MB / 0.9299 GB, free: 26.8 MB / 0.545 GB Notification: Performance of collectPreVariables (initialization): time 0.001447/2.443, allocations: 137.7 kB / 0.9301 GB, free: 26.66 MB / 0.545 GB Notification: Performance of collectInitialEqns (initialization): time 0.003657/2.447, allocations: 8.215 MB / 0.9381 GB, free: 18.43 MB / 0.545 GB Notification: Performance of collectInitialBindings (initialization): time 0.00265/2.45, allocations: 2.441 MB / 0.9405 GB, free: 16.02 MB / 0.545 GB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003263/2.453, allocations: 1.942 MB / 0.9424 GB, free: 14.06 MB / 0.545 GB Notification: Performance of setup shared object (initialization): time 4.952e-05/2.453, allocations: 309.1 kB / 0.9427 GB, free: 13.76 MB / 0.545 GB Notification: Performance of preBalanceInitialSystem (initialization): time 0.006357/2.459, allocations: 4.915 MB / 0.9475 GB, free: 8.836 MB / 0.545 GB Notification: Performance of partitionIndependentBlocks (initialization): time 0.3046/2.764, allocations: 8.627 MB / 0.9559 GB, free: 172 MB / 0.545 GB Notification: Performance of analyzeInitialSystem (initialization): time 0.02303/2.787, allocations: 14.37 MB / 0.9699 GB, free: 166.9 MB / 0.545 GB Notification: Performance of solveInitialSystemEqSystem (initialization): time 0.0001563/2.787, allocations: 36.41 kB / 0.97 GB, free: 166.9 MB / 0.545 GB Notification: Performance of matching and sorting (n=1274) (initialization): time 0.03031/2.818, allocations: 16.43 MB / 0.986 GB, free: 163.4 MB / 0.545 GB Notification: Performance of prepare postOptimizeDAE: time 0.0001065/2.818, allocations: 60.61 kB / 0.9861 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0002433/2.818, allocations: 117.8 kB / 0.9862 GB, free: 163.4 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (initialization): time 0.007013/2.825, allocations: 2.595 MB / 0.9887 GB, free: 162.6 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.009187/2.834, allocations: 2.181 MB / 0.9909 GB, free: 162.4 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0358/2.87, allocations: 30.8 MB / 1.021 GB, free: 139.7 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.01084/2.881, allocations: 0.539 MB / 1.021 GB, free: 139.3 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.003641/2.885, allocations: 477.6 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.01653/2.901, allocations: 6.826 MB / 1.029 GB, free: 133.1 MB / 0.545 GB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.003437/2.905, allocations: 0.813 MB / 1.029 GB, free: 132.7 MB / 0.545 GB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.02822/2.933, allocations: 13.1 MB / 1.042 GB, free: 121.6 MB / 0.545 GB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.01544/2.948, allocations: 8.216 MB / 1.05 GB, free: 114.5 MB / 0.545 GB Notification: Performance of postOpt constantLinearSystem (simulation): time 0.00013/2.949, allocations: 28.56 kB / 1.05 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0002004/2.949, allocations: 35.86 kB / 1.05 GB, free: 114.4 MB / 0.545 GB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.07246/3.021, allocations: 28.02 MB / 1.078 GB, free: 86.29 MB / 0.545 GB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.634e-05/3.021, allocations: 7.984 kB / 1.078 GB, free: 86.28 MB / 0.545 GB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.005422/3.027, allocations: 1.108 MB / 1.079 GB, free: 85.17 MB / 0.545 GB Notification: Performance of postOpt tearingSystem (simulation): time 0.006858/3.034, allocations: 2.657 MB / 1.081 GB, free: 82.48 MB / 0.545 GB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001639/3.035, allocations: 148 kB / 1.081 GB, free: 82.33 MB / 0.545 GB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03625/3.072, allocations: 35.87 MB / 1.116 GB, free: 45.34 MB / 0.545 GB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.108e-06/3.072, allocations: 192 / 1.116 GB, free: 45.34 MB / 0.545 GB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.03087/3.103, allocations: 18.84 MB / 1.135 GB, free: 26.39 MB / 0.545 GB Notification: Performance of postOpt removeConstants (simulation): time 0.006237/3.109, allocations: 1.803 MB / 1.137 GB, free: 24.57 MB / 0.545 GB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002199/3.111, allocations: 135.9 kB / 1.137 GB, free: 24.43 MB / 0.545 GB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005298/3.116, allocations: 391.6 kB / 1.137 GB, free: 24.05 MB / 0.545 GB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00144/3.118, allocations: 0.5232 MB / 1.138 GB, free: 23.53 MB / 0.545 GB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004616/3.118, allocations: 203.8 kB / 1.138 GB, free: 23.33 MB / 0.545 GB Notification: Performance of sorting global known variables: time 0.009021/3.127, allocations: 4.867 MB / 1.143 GB, free: 18.49 MB / 0.545 GB Notification: Performance of sort global known variables: time 6.61e-07/3.127, allocations: 0 / 1.143 GB, free: 18.49 MB / 0.545 GB Notification: Performance of remove unused functions: time 0.01544/3.143, allocations: 3.091 MB / 1.146 GB, free: 15.41 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.3133/3.456, allocations: 19.65 MB / 1.165 GB, free: 157.1 MB / 0.545 GB Notification: Performance of simCode: created initialization part: time 0.02353/3.48, allocations: 13.55 MB / 1.178 GB, free: 155.5 MB / 0.545 GB Notification: Performance of simCode: created event and clocks part: time 1.15e-05/3.48, allocations: 0 / 1.178 GB, free: 155.5 MB / 0.545 GB Notification: Performance of simCode: created simulation system equations: time 0.01149/3.491, allocations: 7.605 MB / 1.185 GB, free: 153.9 MB / 0.545 GB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01224/3.504, allocations: 2.153 MB / 1.188 GB, free: 153.6 MB / 0.545 GB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1766/3.68, allocations: 105.5 MB / 1.291 GB, free: 66.38 MB / 0.545 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.02058/3.701, allocations: 11.43 MB / 1.302 GB, free: 54.89 MB / 0.545 GB Notification: Performance of simCode: alias equations: time 0.009711/3.711, allocations: 3.364 MB / 1.305 GB, free: 51.52 MB / 0.545 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.01184/3.723, allocations: 6.845 MB / 1.312 GB, free: 44.67 MB / 0.545 GB Notification: Performance of SimCode: time 8.91e-07/3.723, allocations: 0 / 1.312 GB, free: 44.67 MB / 0.545 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.5651/4.288, allocations: 248 MB / 1.554 GB, free: 42.1 MB / 0.5607 GB Notification: Performance of buildModelFMU: Generate platform static: time 29.61/33.9, allocations: 4.375 kB / 1.554 GB, free: 42.09 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)