Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.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.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer",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.001854/0.001854, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002156/0.002156, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.317/2.317, allocations: 222.9 MB / 241.6 MB, free: 15.2 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001736/0.001736, allocations: 51.92 kB / 300.7 MB, free: 5.75 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1336/0.1353, allocations: 49.45 MB / 350.2 MB, free: 4.289 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.02856/0.164, allocations: 16.8 MB / 367 MB, free: 3.402 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.3027/0.4667, allocations: 5.678 MB / 372.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004051/0.4708, allocations: 111.6 kB / 372.8 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005441/0.4763, allocations: 1.343 MB / 374.1 MB, free: 9.641 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008181/0.4846, allocations: 1.788 MB / 375.9 MB, free: 9.57 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.005671/0.4903, allocations: 1.031 MB / 376.9 MB, free: 9.488 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01336/0.5037, allocations: 6.261 MB / 383.2 MB, free: 7.398 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01473/0.5185, allocations: 5.38 MB / 388.6 MB, free: 5.227 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009581/0.5281, allocations: 2.931 MB / 391.5 MB, free: 3.867 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.01073/0.5389, allocations: 3.329 MB / 394.8 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.004837/0.5438, allocations: 0.7882 MB / 395.6 MB, free: 2.324 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.006832/0.5507, allocations: 1.079 MB / 396.7 MB, free: 2.238 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.004538/0.5553, allocations: 1.864 MB / 398.6 MB, free: 0.7227 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01075/0.5661, allocations: 3.344 MB / 401.9 MB, free: 13.38 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02267/0.5888, allocations: 10.44 MB / 412.4 MB, free: 3.117 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.472e-05/0.5889, allocations: 4 kB / 412.4 MB, free: 3.113 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.994e-06/0.5889, allocations: 3.938 kB / 412.4 MB, free: 3.109 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0003308/0.5893, allocations: 0 / 412.4 MB, free: 3.109 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 1287 * Number of variables: 1287 Notification: Performance of Generate backend data structure: time 0.0341/0.6234, allocations: 6.524 MB / 418.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.927e-05/0.6235, allocations: 15.89 kB / 418.9 MB, free: 12.52 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.00433/0.6279, allocations: 0.6734 MB / 419.6 MB, free: 11.84 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0125/0.6404, allocations: 1.053 MB / 420.6 MB, free: 10.79 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01439/0.6549, allocations: 3.536 MB / 424.2 MB, free: 7.219 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0007907/0.6557, allocations: 374.9 kB / 424.5 MB, free: 6.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.00267/0.6584, allocations: 478.4 kB / 425 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.02333/0.6818, allocations: 6.875 MB / 431.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002189/0.6821, allocations: 11.84 kB / 431.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001437/0.6835, allocations: 198.3 kB / 432.1 MB, free: 15.24 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002718/0.6838, allocations: 245.8 kB / 432.3 MB, free: 15 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01838/0.7022, allocations: 5.937 MB / 438.3 MB, free: 9.051 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.05676/0.759, allocations: 20.92 MB / 459.2 MB, free: 3.863 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01648/0.7755, allocations: 9.957 MB / 469.1 MB, free: 8.926 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00557/0.7812, allocations: 2.491 MB / 471.6 MB, free: 6.434 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01659/0.7978, allocations: 6.506 MB / 478.1 MB, free: 15.89 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.633e-05/0.7979, allocations: 64.56 kB / 478.2 MB, free: 15.81 MB / 398.1 MB Notification: Performance of pre-optimization done (n=219): time 5.08e-06/0.7979, allocations: 0 / 478.2 MB, free: 15.81 MB / 398.1 MB Notification: Performance of matching and sorting (n=226): time 0.02083/0.8188, allocations: 9.671 MB / 487.9 MB, free: 5.938 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.107e-05/0.8189, allocations: 81.41 kB / 487.9 MB, free: 5.848 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00668/0.8256, allocations: 2.984 MB / 490.9 MB, free: 2.848 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000387/0.826, allocations: 61.7 kB / 491 MB, free: 2.781 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001711/0.8277, allocations: 2.159 MB / 493.1 MB, free: 0.6094 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009276/0.8287, allocations: 0.7584 MB / 493.9 MB, free: 15.85 MB / 414.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008254/0.8295, allocations: 465.1 kB / 494.4 MB, free: 15.39 MB / 414.1 MB Notification: Performance of setup shared object (initialization): time 0.0001029/0.8296, allocations: 301.1 kB / 494.7 MB, free: 15.09 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002154/0.8318, allocations: 1.293 MB / 495.9 MB, free: 13.8 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002418/0.8342, allocations: 1.928 MB / 497.9 MB, free: 11.61 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004778/0.839, allocations: 3.336 MB / 0.4895 GB, free: 8.016 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.659e-05/0.8391, allocations: 7.938 kB / 0.4895 GB, free: 8.008 MB / 414.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007829/0.8469, allocations: 4.245 MB / 0.4936 GB, free: 3.715 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.425e-05/0.847, allocations: 20.03 kB / 0.4936 GB, free: 3.695 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.33e-05/0.847, allocations: 20 kB / 0.4937 GB, free: 3.676 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00268/0.8497, allocations: 0.7749 MB / 0.4944 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.003263/0.853, allocations: 0.5539 MB / 0.4949 GB, free: 2.336 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0189/0.8719, allocations: 10.9 MB / 0.5056 GB, free: 6.898 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.004236/0.8762, allocations: 107.8 kB / 0.5057 GB, free: 6.793 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0006953/0.877, allocations: 103.9 kB / 0.5058 GB, free: 6.691 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 82 * Number of states: 0 () * Number of discrete variables: 6 (booleanStep2[3].y,booleanStep2[2].y,booleanStep2[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 (278): * Single equations (assignments): 273 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 4 * 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): 4 systems {(3,25,77.8%), (1,8,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.005992/0.883, allocations: 1.606 MB / 0.5074 GB, free: 5.074 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001615/0.8846, allocations: 312.2 kB / 0.5077 GB, free: 4.766 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01402/0.8987, allocations: 3.917 MB / 0.5115 GB, free: 0.7773 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.772e-05/0.8988, allocations: 20 kB / 0.5115 GB, free: 0.7578 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.083e-05/0.8988, allocations: 12 kB / 0.5115 GB, free: 0.7461 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.146e-05/0.8989, allocations: 11.95 kB / 0.5115 GB, free: 0.7344 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0278/0.9268, allocations: 8.551 MB / 0.5199 GB, free: 8.074 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.773e-05/0.9268, allocations: 4 kB / 0.5199 GB, free: 8.07 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002549/0.9294, allocations: 348 kB / 0.5202 GB, free: 7.73 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005078/0.9345, allocations: 0.946 MB / 0.5211 GB, free: 6.766 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0006976/0.9353, allocations: 51.98 kB / 0.5212 GB, free: 6.715 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.272/1.207, allocations: 15.71 MB / 0.5365 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/1.207, allocations: 2.75 kB / 0.5365 GB, free: 137.6 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01495/1.222, allocations: 5.686 MB / 0.5421 GB, free: 135.3 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002516/1.225, allocations: 0.6813 MB / 0.5428 GB, free: 135 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.001035/1.226, allocations: 54.5 kB / 0.5428 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.002721/1.229, allocations: 115.7 kB / 0.5429 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0008605/1.23, allocations: 191.1 kB / 0.5431 GB, free: 134.9 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002584/1.23, allocations: 64.52 kB / 0.5432 GB, free: 134.9 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.005761/1.236, allocations: 2.059 MB / 0.5452 GB, free: 134.1 MB / 446.1 MB Notification: Performance of sort global known variables: time 7.11e-07/1.236, allocations: 1.25 kB / 0.5452 GB, free: 134.1 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.007475/1.243, allocations: 0.9385 MB / 0.5461 GB, free: 134 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 9 * Number of states: 9 (aimc.inertiaRotor.w,aimc.stator.zeroInductor.i0,aimc.stator.core.Phi.re,aimc.stator.core.Phi.im,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.re,aimc.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[3].Phi.im,transformer.l1sigma.inductor[2].i,transformer.l1sigma.inductor[3].i,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStep2[1].y,booleanStep2[2].y,booleanStep2[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (156): * Single equations (assignments): 150 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 6 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 6 systems {(1,8,100.0%), (2,26,100.0%), (1,1,100.0%), (1,8,100.0%), (1,13,100.0%), (2,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.01739/1.261, allocations: 6.402 MB / 0.5523 GB, free: 131 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01741/1.278, allocations: 5.376 MB / 0.5576 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.116e-05/1.278, allocations: 3.969 kB / 0.5576 GB, free: 129.2 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.005918/1.284, allocations: 2.625 MB / 0.5602 GB, free: 127.8 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004585/1.289, allocations: 0.917 MB / 0.5611 GB, free: 127.5 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05665/1.345, allocations: 39.93 MB / 0.6 GB, free: 88.71 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003476/1.349, allocations: 3.422 MB / 0.6034 GB, free: 85.25 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005136/1.354, allocations: 0.7565 MB / 0.6041 GB, free: 84.49 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.003896/1.358, allocations: 1.839 MB / 0.6059 GB, free: 82.65 MB / 446.1 MB Notification: Performance of SimCode: time 1.413e-06/1.358, allocations: 3.938 kB / 0.6059 GB, free: 82.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2028/1.561, allocations: 86.4 MB / 0.6903 GB, free: 12.99 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.79/20.35, allocations: 13.67 kB / 0.6903 GB, free: 12.98 MB / 462.1 MB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv --start-time 0 --stop-time 2.5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.0001 Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_InductionMachines_IMC_Transformer.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.pipe 2>&1)