Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.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.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD",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.001402/0.001402, allocations: 105.4 kB / 17.73 MB, free: 5.336 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.001601/0.001601, allocations: 196.2 kB / 18.66 MB, free: 4.406 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.409/1.409, allocations: 205.1 MB / 224.5 MB, free: 12.23 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.001383/0.001383, allocations: 48.31 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09069/0.09208, allocations: 46.62 MB / 374.7 MB, free: 5.062 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD): time 0.205/0.2971, allocations: 13.68 MB / 388.3 MB, free: 5.469 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.008683/0.3059, allocations: 4.502 MB / 392.8 MB, free: 2.527 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002713/0.3087, allocations: 73.38 kB / 392.9 MB, free: 2.508 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003291/0.312, allocations: 1.039 MB / 393.9 MB, free: 1.949 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.004755/0.3168, allocations: 1.38 MB / 395.3 MB, free: 1.047 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002384/0.3192, allocations: 0.921 MB / 396.3 MB, free: 460 kB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.00693/0.3261, allocations: 4.74 MB / 401 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.005491/0.3316, allocations: 3.634 MB / 404.6 MB, free: 12.46 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004715/0.3364, allocations: 2.19 MB / 406.8 MB, free: 11.37 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00529/0.3417, allocations: 2.46 MB / 409.3 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001862/0.3436, allocations: 0.5887 MB / 409.9 MB, free: 10.14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003509/0.3471, allocations: 0.7906 MB / 410.7 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002266/0.3494, allocations: 1.347 MB / 412 MB, free: 9.043 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005288/0.3547, allocations: 2.457 MB / 414.5 MB, free: 7.258 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01199/0.3667, allocations: 7.777 MB / 422.2 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.747e-06/0.3668, allocations: 0 / 422.2 MB, free: 368 kB / 334.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.3668, allocations: 0 / 422.2 MB, free: 368 kB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002993/0.3671, allocations: 0 / 422.2 MB, free: 368 kB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 945 * Number of variables: 945 Notification: Performance of Generate backend data structure: time 0.01657/0.3837, allocations: 5.045 MB / 427.3 MB, free: 11.24 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.889e-05/0.3838, allocations: 8.031 kB / 427.3 MB, free: 11.23 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001773/0.3856, allocations: 0.5023 MB / 427.8 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00545/0.391, allocations: 0.8742 MB / 428.7 MB, free: 9.844 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.007451/0.3985, allocations: 2.655 MB / 431.3 MB, free: 7.137 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003656/0.3989, allocations: 279.2 kB / 431.6 MB, free: 6.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001494/0.4004, allocations: 352 kB / 431.9 MB, free: 6.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01356/0.414, allocations: 5.033 MB / 437 MB, free: 1.434 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001596/0.4142, allocations: 11.84 kB / 437 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0009617/0.4152, allocations: 152 kB / 437.1 MB, free: 1.273 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000192/0.4154, allocations: 167.2 kB / 437.3 MB, free: 1.109 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0106/0.426, allocations: 4.373 MB / 441.7 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03584/0.4619, allocations: 15.71 MB / 457.4 MB, free: 12.64 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009995/0.4719, allocations: 7.78 MB / 465.2 MB, free: 3.961 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003662/0.4757, allocations: 1.717 MB / 466.9 MB, free: 2.242 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01122/0.4869, allocations: 4.64 MB / 471.5 MB, free: 13.51 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.745e-05/0.487, allocations: 51.88 kB / 471.6 MB, free: 13.45 MB / 398.1 MB Notification: Performance of pre-optimization done (n=161): time 4.728e-06/0.487, allocations: 0 / 471.6 MB, free: 13.45 MB / 398.1 MB Notification: Performance of matching and sorting (n=164): time 0.02142/0.5085, allocations: 8.119 MB / 479.7 MB, free: 5.105 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.261e-05/0.5086, allocations: 68.72 kB / 479.7 MB, free: 5.027 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005163/0.5138, allocations: 2.163 MB / 481.9 MB, free: 2.828 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0003891/0.5142, allocations: 53.7 kB / 482 MB, free: 2.77 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001721/0.5159, allocations: 1.615 MB / 483.6 MB, free: 1.133 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009558/0.5169, allocations: 0.5468 MB / 484.1 MB, free: 0.5781 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001138/0.5181, allocations: 363.2 kB / 484.5 MB, free: 220 kB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001447/0.5182, allocations: 305.1 kB / 484.8 MB, free: 15.91 MB / 414.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002095/0.5204, allocations: 0.9408 MB / 485.7 MB, free: 14.97 MB / 414.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002326/0.5227, allocations: 1.461 MB / 487.2 MB, free: 13.3 MB / 414.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004391/0.5271, allocations: 2.499 MB / 489.7 MB, free: 10.59 MB / 414.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.163e-05/0.5272, allocations: 7.984 kB / 489.7 MB, free: 10.59 MB / 414.1 MB Notification: Performance of matching and sorting (n=245) (initialization): time 0.006944/0.5341, allocations: 3.347 MB / 493 MB, free: 7.195 MB / 414.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.988e-05/0.5342, allocations: 12 kB / 493 MB, free: 7.184 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.469e-05/0.5343, allocations: 16 kB / 493.1 MB, free: 7.168 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002059/0.5363, allocations: 0.7475 MB / 493.8 MB, free: 6.406 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001666/0.538, allocations: 375.4 kB / 494.2 MB, free: 6.039 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01362/0.5517, allocations: 11.35 MB / 0.4937 GB, free: 10.13 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0021/0.5538, allocations: 87.86 kB / 0.4938 GB, free: 10.04 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003985/0.5542, allocations: 79.98 kB / 0.4938 GB, free: 9.965 MB / 430.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 69 * Number of states: 0 () * Number of discrete variables: 6 (booleanStepYD[3].y,booleanStepYD[2].y,booleanStepYD[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 (195): * Single equations (assignments): 190 * 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 {(1,8,100.0%), (9,19,33.3%), (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.002609/0.5568, allocations: 1.213 MB / 0.495 GB, free: 8.742 MB / 430.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006413/0.5575, allocations: 225.2 kB / 0.4952 GB, free: 8.52 MB / 430.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.006559/0.5641, allocations: 3.163 MB / 0.4983 GB, free: 5.293 MB / 430.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.237e-05/0.5641, allocations: 16 kB / 0.4983 GB, free: 5.277 MB / 430.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.551e-05/0.5642, allocations: 12 kB / 0.4983 GB, free: 5.266 MB / 430.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.41e-05/0.5642, allocations: 7.969 kB / 0.4984 GB, free: 5.258 MB / 430.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01441/0.5786, allocations: 6.572 MB / 0.5048 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.638e-05/0.5787, allocations: 4 kB / 0.5048 GB, free: 14.54 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009778/0.5797, allocations: 176 kB / 0.5049 GB, free: 14.36 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002527/0.5822, allocations: 0.9068 MB / 0.5058 GB, free: 13.44 MB / 446.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002513/0.5825, allocations: 39.98 kB / 0.5059 GB, free: 13.4 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01981/0.6024, allocations: 16.17 MB / 0.5217 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.737e-06/0.6024, allocations: 160 / 0.5217 GB, free: 12.39 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009218/0.6116, allocations: 4.514 MB / 0.5261 GB, free: 7.781 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001758/0.6135, allocations: 0.5139 MB / 0.5266 GB, free: 7.246 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008375/0.6143, allocations: 39.98 kB / 0.5266 GB, free: 7.207 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001766/0.6161, allocations: 79.88 kB / 0.5267 GB, free: 7.129 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000667/0.6168, allocations: 157 kB / 0.5268 GB, free: 6.977 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0002188/0.617, allocations: 43.98 kB / 0.5269 GB, free: 6.934 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003414/0.6205, allocations: 1.485 MB / 0.5283 GB, free: 5.43 MB / 462.1 MB Notification: Performance of sort global known variables: time 6.21e-07/0.6205, allocations: 0 / 0.5283 GB, free: 5.43 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004095/0.6246, allocations: 0.707 MB / 0.529 GB, free: 4.723 MB / 462.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * Number of states: 7 (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,quadraticLoadTorque.phi) * Number of discrete variables: 6 (idealCloser.control[1],idealCloser.control[2],idealCloser.control[3],booleanStepYD[1].y,booleanStepYD[2].y,booleanStepYD[3].y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (94): * Single equations (assignments): 88 * 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,1,100.0%), (1,8,100.0%), (9,19,33.3%), (1,13,100.0%), (1,8,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.009955/0.6346, allocations: 5.132 MB / 0.534 GB, free: 15.48 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006121/0.6408, allocations: 3.117 MB / 0.5371 GB, free: 12.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 8.235e-06/0.6408, allocations: 4 kB / 0.5371 GB, free: 12.29 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.004064/0.6449, allocations: 2.26 MB / 0.5393 GB, free: 9.953 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004089/0.649, allocations: 0.6324 MB / 0.5399 GB, free: 9.316 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2711/0.9201, allocations: 24.82 MB / 0.5641 GB, free: 144.8 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005523/0.9257, allocations: 2.674 MB / 0.5668 GB, free: 143.7 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002641/0.9284, allocations: 482.8 kB / 0.5672 GB, free: 143.7 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002718/0.9311, allocations: 1.318 MB / 0.5685 GB, free: 142.6 MB / 478.1 MB Notification: Performance of SimCode: time 1.263e-06/0.9312, allocations: 0 / 0.5685 GB, free: 142.6 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1361/1.067, allocations: 64.08 MB / 0.6311 GB, free: 88.68 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.93/15, allocations: 8.016 kB / 0.6311 GB, free: 88.67 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_YD.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_YD.pipe 2>&1)