Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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 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_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_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.001342/0.001343, allocations: 114.4 kB / 17.73 MB, free: 5.34 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.00133/0.00133, allocations: 187.1 kB / 18.66 MB, free: 4.414 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.401/1.401, 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.001289/0.001289, allocations: 47.92 kB / 328 MB, free: 3.785 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09496/0.09626, allocations: 46.62 MB / 374.7 MB, free: 5.055 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.2438/0.3402, allocations: 16.75 MB / 391.4 MB, free: 3.445 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01401/0.3542, allocations: 5.72 MB / 397.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004824/0.3592, allocations: 101.1 kB / 397.2 MB, free: 15.33 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00497/0.3641, allocations: 1.375 MB / 398.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008073/0.3722, allocations: 1.834 MB / 400.4 MB, free: 13.4 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003842/0.3761, allocations: 1.057 MB / 401.5 MB, free: 12.72 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01175/0.3879, allocations: 6.318 MB / 407.8 MB, free: 9.48 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.009953/0.3979, allocations: 5.286 MB / 413.1 MB, free: 7.207 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.008504/0.4064, allocations: 2.956 MB / 416.1 MB, free: 5.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007777/0.4143, allocations: 3.326 MB / 419.4 MB, free: 3.176 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00297/0.4173, allocations: 0.7891 MB / 420.2 MB, free: 2.387 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004521/0.4218, allocations: 1.074 MB / 421.3 MB, free: 1.312 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003419/0.4253, allocations: 1.862 MB / 423.1 MB, free: 15.45 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008112/0.4334, allocations: 3.345 MB / 426.5 MB, free: 12.09 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01673/0.4502, allocations: 10.54 MB / 437 MB, free: 1.512 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.103e-06/0.4502, allocations: 0 / 437 MB, free: 1.512 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.904e-06/0.4503, allocations: 0 / 437 MB, free: 1.512 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0004964/0.4508, allocations: 0 / 437 MB, free: 1.512 MB / 350.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.02542/0.4762, allocations: 6.66 MB / 443.7 MB, free: 10.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.239e-05/0.4763, allocations: 12.03 kB / 443.7 MB, free: 10.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002604/0.4789, allocations: 0.6749 MB / 444.3 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006307/0.4852, allocations: 1.083 MB / 445.4 MB, free: 8.98 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008397/0.4936, allocations: 3.43 MB / 448.9 MB, free: 5.477 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003466/0.494, allocations: 369.7 kB / 449.2 MB, free: 5.113 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001584/0.4956, allocations: 483.9 kB / 449.7 MB, free: 4.641 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01605/0.5117, allocations: 6.877 MB / 456.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001275/0.5119, allocations: 3.953 kB / 456.6 MB, free: 13.68 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007321/0.5126, allocations: 204 kB / 456.8 MB, free: 13.48 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003638/0.513, allocations: 237.8 kB / 457 MB, free: 13.25 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01361/0.5266, allocations: 5.929 MB / 462.9 MB, free: 7.305 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04173/0.5684, allocations: 20.72 MB / 483.7 MB, free: 2.152 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01021/0.5786, allocations: 9.959 MB / 493.6 MB, free: 7.16 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004071/0.5827, allocations: 2.481 MB / 496.1 MB, free: 4.672 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01267/0.5954, allocations: 6.495 MB / 0.4908 GB, free: 14.06 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.93e-05/0.5955, allocations: 60.5 kB / 0.4909 GB, free: 14 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 5.12e-06/0.5956, allocations: 0 / 0.4909 GB, free: 14 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.02044/0.616, allocations: 9.765 MB / 0.5004 GB, free: 4.023 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.695e-05/0.6161, allocations: 73.41 kB / 0.5005 GB, free: 3.938 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005225/0.6213, allocations: 2.988 MB / 0.5034 GB, free: 0.9336 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004023/0.6218, allocations: 73.7 kB / 0.5035 GB, free: 0.8555 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001876/0.6237, allocations: 2.209 MB / 0.5056 GB, free: 14.62 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001037/0.6247, allocations: 0.7901 MB / 0.5064 GB, free: 13.83 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0008724/0.6256, allocations: 465.2 kB / 0.5068 GB, free: 13.37 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.000104/0.6257, allocations: 301.1 kB / 0.5071 GB, free: 13.07 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002351/0.6281, allocations: 1.293 MB / 0.5084 GB, free: 11.77 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002644/0.6307, allocations: 1.924 MB / 0.5103 GB, free: 9.59 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004903/0.6357, allocations: 3.344 MB / 0.5135 GB, free: 5.996 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.86e-05/0.6357, allocations: 4 kB / 0.5135 GB, free: 5.992 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.008356/0.6441, allocations: 4.262 MB / 0.5177 GB, free: 1.688 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.919e-05/0.6442, allocations: 12 kB / 0.5177 GB, free: 1.676 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.624e-05/0.6442, allocations: 20 kB / 0.5177 GB, free: 1.656 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002631/0.6468, allocations: 0.7706 MB / 0.5185 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002477/0.6493, allocations: 0.5733 MB / 0.519 GB, free: 304 kB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01256/0.6619, allocations: 10.91 MB / 0.5297 GB, free: 4.828 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002899/0.6649, allocations: 103.9 kB / 0.5298 GB, free: 4.727 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005046/0.6654, allocations: 100 kB / 0.5299 GB, free: 4.629 MB / 462.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.004014/0.6694, allocations: 1.61 MB / 0.5315 GB, free: 3.008 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001121/0.6705, allocations: 329.9 kB / 0.5318 GB, free: 2.684 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.007837/0.6784, allocations: 3.918 MB / 0.5356 GB, free: 14.7 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.001e-05/0.6784, allocations: 20 kB / 0.5356 GB, free: 14.68 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.364e-05/0.6785, allocations: 12 kB / 0.5356 GB, free: 14.67 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.415e-05/0.6785, allocations: 11.95 kB / 0.5356 GB, free: 14.66 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01901/0.6975, allocations: 8.56 MB / 0.544 GB, free: 5.941 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.572e-05/0.6976, allocations: 4 kB / 0.544 GB, free: 5.938 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001744/0.6993, allocations: 355.7 kB / 0.5443 GB, free: 5.59 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003225/0.7026, allocations: 0.9339 MB / 0.5453 GB, free: 4.637 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002588/0.7029, allocations: 59.92 kB / 0.5453 GB, free: 4.578 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2359/0.9388, allocations: 15.68 MB / 0.5606 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.001e-06/0.9389, allocations: 7.531 kB / 0.5606 GB, free: 139.4 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.009998/0.9489, allocations: 5.715 MB / 0.5662 GB, free: 137 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002144/0.951, allocations: 0.7038 MB / 0.5669 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0005086/0.9516, allocations: 54.72 kB / 0.567 GB, free: 136.7 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001588/0.9532, allocations: 108.2 kB / 0.5671 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0005602/0.9537, allocations: 189.9 kB / 0.5672 GB, free: 136.6 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001691/0.9539, allocations: 58.39 kB / 0.5673 GB, free: 136.6 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003599/0.9575, allocations: 2.061 MB / 0.5693 GB, free: 135.8 MB / 478.1 MB Notification: Performance of sort global known variables: time 2.3e-07/0.9575, allocations: 1.219 kB / 0.5693 GB, free: 135.8 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004553/0.9621, allocations: 0.9416 MB / 0.5702 GB, free: 135.7 MB / 478.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,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.01002/0.9721, allocations: 6.421 MB / 0.5765 GB, free: 132.7 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006185/0.9783, allocations: 3.908 MB / 0.5803 GB, free: 131 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 6.873e-06/0.9784, allocations: 1.031 kB / 0.5803 GB, free: 131 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003872/0.9822, allocations: 2.64 MB / 0.5829 GB, free: 129.5 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004152/0.9864, allocations: 0.9237 MB / 0.5838 GB, free: 129.2 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05191/1.038, allocations: 33.83 MB / 0.6168 GB, free: 101.2 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002814/1.041, allocations: 3.425 MB / 0.6202 GB, free: 97.75 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002432/1.044, allocations: 0.7604 MB / 0.6209 GB, free: 96.98 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002049/1.046, allocations: 1.827 MB / 0.6227 GB, free: 95.16 MB / 478.1 MB Notification: Performance of SimCode: time 1.012e-06/1.046, allocations: 0 / 0.6227 GB, free: 95.16 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1392/1.185, allocations: 85.29 MB / 0.706 GB, free: 9.738 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.25/18.43, allocations: 14.77 kB / 0.706 GB, free: 9.727 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_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_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Transformer.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/AIMC_Transformer/AIMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches