Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.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 trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/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_DOL,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001222/0.001222, allocations: 103.8 kB / 17.63 MB, free: 5.504 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: 206.4 kB / 18.58 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.367/1.367, allocations: 227.4 MB / 246.8 MB, free: 10.63 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002154/0.002155, allocations: 55.47 kB / 307.1 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1109/0.1131, allocations: 50.53 MB / 357.6 MB, free: 14 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL): time 0.2134/0.3265, allocations: 38.91 MB / 396.5 MB, free: 14.11 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.02493/0.3515, allocations: 10.32 MB / 406.8 MB, free: 6.609 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.009373/0.3609, allocations: 297.2 kB / 407.1 MB, free: 6.547 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.02745/0.3884, allocations: 10.2 MB / 417.3 MB, free: 14.82 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01566/0.4041, allocations: 4.03 MB / 421.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.008407/0.4125, allocations: 2.427 MB / 423.8 MB, free: 9.582 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.02565/0.4382, allocations: 16.4 MB / 440.2 MB, free: 9.293 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.05284/0.4911, allocations: 31.41 MB / 471.6 MB, free: 9.629 MB / 382.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.01409/0.5052, allocations: 8.455 MB / 480 MB, free: 1.152 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01575/0.521, allocations: 9.523 MB / 489.6 MB, free: 7.598 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 0.007248/0.5283, allocations: 2.414 MB / 492 MB, free: 5.184 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.01381/0.5421, allocations: 2.855 MB / 494.8 MB, free: 2.328 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 0.008213/0.5504, allocations: 4.816 MB / 499.7 MB, free: 13.5 MB / 414.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0172/0.5676, allocations: 9.21 MB / 0.4969 GB, free: 4.254 MB / 414.1 MB Notification: Performance of NFConvertDAE.convert: time 0.04243/0.6101, allocations: 31.98 MB / 0.5282 GB, free: 4.188 MB / 446.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.556e-06/0.6101, allocations: 0 / 0.5282 GB, free: 4.188 MB / 446.1 MB Notification: Performance of FrontEnd: time 2.314e-06/0.6101, allocations: 0 / 0.5282 GB, free: 4.188 MB / 446.1 MB Notification: Performance of Transformations before backend: time 0.001037/0.6112, allocations: 0 / 0.5282 GB, free: 4.188 MB / 446.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.3767/0.9879, allocations: 18.78 MB / 0.5465 GB, free: 125.3 MB / 446.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.148e-05/0.988, allocations: 9.156 kB / 0.5465 GB, free: 125.3 MB / 446.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.009628/0.9976, allocations: 2.291 MB / 0.5488 GB, free: 123.8 MB / 446.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.04716/1.045, allocations: 8.289 MB / 0.5568 GB, free: 120.1 MB / 446.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.02054/1.065, allocations: 9.956 MB / 0.5666 GB, free: 110.9 MB / 446.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0009102/1.066, allocations: 1.067 MB / 0.5676 GB, free: 109.9 MB / 446.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.005617/1.072, allocations: 1.402 MB / 0.569 GB, free: 108.5 MB / 446.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.05154/1.124, allocations: 22.76 MB / 0.5912 GB, free: 85.64 MB / 446.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0007594/1.124, allocations: 23.75 kB / 0.5912 GB, free: 85.62 MB / 446.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.004961/1.129, allocations: 0.573 MB / 0.5918 GB, free: 85.06 MB / 446.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0006768/1.13, allocations: 0.7716 MB / 0.5925 GB, free: 84.29 MB / 446.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.03702/1.167, allocations: 21.01 MB / 0.6131 GB, free: 63.26 MB / 446.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1086/1.276, allocations: 73.58 MB / 0.6849 GB, free: 4.297 MB / 462.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.2208/1.497, allocations: 42.71 MB / 0.7266 GB, free: 149.3 MB / 494.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009426/1.506, allocations: 5.226 MB / 0.7317 GB, free: 149.2 MB / 494.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02994/1.536, allocations: 13.01 MB / 0.7444 GB, free: 143.4 MB / 494.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 7.372e-05/1.536, allocations: 85.36 kB / 0.7445 GB, free: 143.4 MB / 494.1 MB Notification: Performance of pre-optimization done (n=498): time 8.786e-06/1.536, allocations: 1.531 kB / 0.7445 GB, free: 143.4 MB / 494.1 MB Notification: Performance of matching and sorting (n=506): time 0.07178/1.608, allocations: 26.3 MB / 0.7702 GB, free: 132 MB / 494.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.338e-05/1.608, allocations: 136.2 kB / 0.7703 GB, free: 131.9 MB / 494.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.009245/1.617, allocations: 5.783 MB / 0.776 GB, free: 129.7 MB / 494.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0008736/1.618, allocations: 109.7 kB / 0.7761 GB, free: 129.6 MB / 494.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002847/1.621, allocations: 6.168 MB / 0.7821 GB, free: 123.9 MB / 494.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001744/1.623, allocations: 1.727 MB / 0.7838 GB, free: 122.2 MB / 494.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.004475/1.627, allocations: 1.461 MB / 0.7852 GB, free: 120.7 MB / 494.1 MB Notification: Performance of setup shared object (initialization): time 5.212e-05/1.627, allocations: 301.1 kB / 0.7855 GB, free: 120.4 MB / 494.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004645/1.632, allocations: 3.63 MB / 0.789 GB, free: 116.8 MB / 494.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005357/1.637, allocations: 6.478 MB / 0.7954 GB, free: 109 MB / 494.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01054/1.648, allocations: 10.76 MB / 0.8059 GB, free: 96.95 MB / 494.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.336e-05/1.648, allocations: 28 kB / 0.8059 GB, free: 96.92 MB / 494.1 MB Notification: Performance of matching and sorting (n=962) (initialization): time 0.02241/1.671, allocations: 12.09 MB / 0.8177 GB, free: 84.76 MB / 494.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001082/1.671, allocations: 44 kB / 0.8178 GB, free: 84.71 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 0.0001452/1.671, allocations: 92.59 kB / 0.8178 GB, free: 84.62 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004328/1.675, allocations: 1.601 MB / 0.8194 GB, free: 83.02 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005984/1.681, allocations: 1.665 MB / 0.821 GB, free: 81.35 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02067/1.702, allocations: 19.64 MB / 0.8402 GB, free: 61.04 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006666/1.709, allocations: 427.3 kB / 0.8406 GB, free: 60.62 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.00153/1.71, allocations: 368 kB / 0.841 GB, free: 60.26 MB / 494.1 MB 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.008465/1.719, allocations: 5.198 MB / 0.8461 GB, free: 55.05 MB / 494.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001796/1.72, allocations: 0.6059 MB / 0.8466 GB, free: 54.44 MB / 494.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01909/1.74, allocations: 9.369 MB / 0.8558 GB, free: 44.97 MB / 494.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 0.009665/1.749, allocations: 5.872 MB / 0.8615 GB, free: 39.07 MB / 494.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.372e-05/1.749, allocations: 20 kB / 0.8616 GB, free: 39.05 MB / 494.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 0.0001117/1.749, allocations: 27.89 kB / 0.8616 GB, free: 39.02 MB / 494.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03542/1.785, allocations: 21.03 MB / 0.8821 GB, free: 17.86 MB / 494.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.579e-05/1.785, allocations: 8.156 kB / 0.8821 GB, free: 17.86 MB / 494.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003679/1.789, allocations: 0.8659 MB / 0.883 GB, free: 16.99 MB / 494.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004708/1.793, allocations: 1.655 MB / 0.8846 GB, free: 15.32 MB / 494.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.001154/1.795, allocations: 124 kB / 0.8847 GB, free: 15.2 MB / 494.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2439/2.039, allocations: 23.2 MB / 0.9074 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.824e-06/2.039, allocations: 8.109 kB / 0.9074 GB, free: 138.5 MB / 494.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02042/2.059, allocations: 13.72 MB / 0.9208 GB, free: 133.4 MB / 494.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.003162/2.062, allocations: 1.363 MB / 0.9221 GB, free: 132.9 MB / 494.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001177/2.063, allocations: 103.4 kB / 0.9222 GB, free: 132.8 MB / 494.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.003431/2.067, allocations: 286.2 kB / 0.9225 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001024/2.068, allocations: 405 kB / 0.9229 GB, free: 132.7 MB / 494.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0003282/2.068, allocations: 159.6 kB / 0.923 GB, free: 132.6 MB / 494.1 MB Notification: Performance of sorting global known variables: time 0.005863/2.074, allocations: 3.896 MB / 0.9268 GB, free: 131.2 MB / 494.1 MB Notification: Performance of sort global known variables: time 3e-07/2.074, allocations: 0 / 0.9268 GB, free: 131.2 MB / 494.1 MB Notification: Performance of remove unused functions: time 0.009125/2.083, allocations: 2.342 MB / 0.9291 GB, free: 131 MB / 494.1 MB 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,5,100.0%), (1,8,100.0%), (1,13,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.01778/2.101, allocations: 14.51 MB / 0.9433 GB, free: 124.4 MB / 494.1 MB Notification: Performance of simCode: created initialization part: time 0.02954/2.131, allocations: 15.87 MB / 0.9588 GB, free: 112.1 MB / 494.1 MB Notification: Performance of simCode: created event and clocks part: time 9.458e-06/2.131, allocations: 4 kB / 0.9588 GB, free: 112.1 MB / 494.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007929/2.139, allocations: 5.441 MB / 0.9641 GB, free: 107.3 MB / 494.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.008888/2.147, allocations: 1.642 MB / 0.9657 GB, free: 105.9 MB / 494.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1206/2.268, allocations: 101.4 MB / 1.065 GB, free: 14.89 MB / 0.4982 GB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.01335/2.281, allocations: 8.856 MB / 1.073 GB, free: 5.992 MB / 0.4982 GB Notification: Performance of simCode: alias equations: time 0.007749/2.289, allocations: 2.539 MB / 1.076 GB, free: 3.445 MB / 0.4982 GB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1841/2.473, allocations: 5.178 MB / 1.081 GB, free: 166.3 MB / 0.4982 GB Notification: Performance of SimCode: time 1.283e-06/2.473, allocations: 1.094 kB / 1.081 GB, free: 166.3 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4789/2.952, allocations: 189.7 MB / 1.266 GB, free: 125.9 MB / 0.4982 GB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/16.23, allocations: 7.844 kB / 1.266 GB, free: 125.9 MB / 0.4982 GB (rm -f Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_QuasiStatic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_DOL.fmu > Modelica_trunk_Modelica.Magnetic.QuasiStatic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_DOL.pipe 2>&1)