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.001457/0.001457, allocations: 110.8 kB / 17.06 MB, free: 6.02 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.001504/0.001504, allocations: 189.4 kB / 18 MB, free: 5.102 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 222.9 MB / 241.7 MB, free: 15.15 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 43.92 kB / 350.8 MB, free: 3.738 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.3002, allocations: 49.44 MB / 400.3 MB, free: 8.402 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer): time 0.01985/0.3201, allocations: 16.81 MB / 417.1 MB, free: 7.93 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01167/0.3318, allocations: 5.676 MB / 422.7 MB, free: 2.238 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003326/0.3352, allocations: 111.6 kB / 422.9 MB, free: 2.129 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004951/0.3401, allocations: 1.332 MB / 424.2 MB, free: 0.7891 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007306/0.3475, allocations: 1.79 MB / 426 MB, free: 14.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003723/0.3513, allocations: 1.036 MB / 427 MB, free: 13.95 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009862/0.3612, allocations: 6.295 MB / 433.3 MB, free: 7.633 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00825/0.3695, allocations: 5.387 MB / 438.7 MB, free: 2.156 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006271/0.3758, allocations: 2.936 MB / 441.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006795/0.3826, allocations: 3.339 MB / 445 MB, free: 11.87 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002683/0.3853, allocations: 0.7891 MB / 445.8 MB, free: 11.08 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.004095/0.3895, allocations: 1.066 MB / 446.8 MB, free: 10.02 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003249/0.3927, allocations: 1.862 MB / 448.7 MB, free: 8.148 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.007214/0.4, allocations: 3.345 MB / 452 MB, free: 4.789 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01693/0.417, allocations: 10.55 MB / 462.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.49e-06/0.417, allocations: 4 kB / 462.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of FrontEnd: time 1.933e-06/0.417, allocations: 4 kB / 462.6 MB, free: 10.2 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000382/0.4174, allocations: 0 / 462.6 MB, free: 10.2 MB / 382.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.02104/0.4385, allocations: 6.656 MB / 469.2 MB, free: 3.449 MB / 382.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.597e-05/0.4385, allocations: 11.89 kB / 469.3 MB, free: 3.438 MB / 382.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002182/0.4407, allocations: 0.675 MB / 469.9 MB, free: 2.754 MB / 382.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.006416/0.4472, allocations: 1.075 MB / 471 MB, free: 1.676 MB / 382.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009446/0.4567, allocations: 3.679 MB / 474.7 MB, free: 13.92 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004933/0.4572, allocations: 365.7 kB / 475 MB, free: 13.56 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001887/0.4591, allocations: 487.9 kB / 475.5 MB, free: 13.09 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01855/0.4777, allocations: 6.877 MB / 482.4 MB, free: 6.129 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002367/0.4779, allocations: 7.938 kB / 482.4 MB, free: 6.121 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001521/0.4795, allocations: 204 kB / 482.6 MB, free: 5.922 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002943/0.4798, allocations: 237.8 kB / 482.8 MB, free: 5.688 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01452/0.4943, allocations: 5.937 MB / 488.8 MB, free: 15.74 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04536/0.5397, allocations: 20.71 MB / 0.4975 GB, free: 10.59 MB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01323/0.553, allocations: 9.951 MB / 0.5073 GB, free: 15.61 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.005414/0.5585, allocations: 2.47 MB / 0.5097 GB, free: 13.14 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0161/0.5746, allocations: 6.494 MB / 0.516 GB, free: 6.531 MB / 446.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.299e-05/0.5747, allocations: 60.56 kB / 0.5161 GB, free: 6.465 MB / 446.1 MB Notification: Performance of pre-optimization done (n=219): time 4.949e-06/0.5748, allocations: 0 / 0.5161 GB, free: 6.465 MB / 446.1 MB Notification: Performance of matching and sorting (n=226): time 0.02494/0.5997, allocations: 9.749 MB / 0.5256 GB, free: 12.51 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.446e-05/0.5998, allocations: 81.39 kB / 0.5257 GB, free: 12.41 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007127/0.607, allocations: 2.977 MB / 0.5286 GB, free: 9.422 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004956/0.6075, allocations: 69.7 kB / 0.5286 GB, free: 9.348 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002409/0.61, allocations: 2.221 MB / 0.5308 GB, free: 7.113 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001318/0.6113, allocations: 0.7979 MB / 0.5316 GB, free: 6.309 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001562/0.6129, allocations: 465.2 kB / 0.532 GB, free: 5.848 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 0.00015/0.613, allocations: 305.1 kB / 0.5323 GB, free: 5.547 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002692/0.6157, allocations: 1.289 MB / 0.5336 GB, free: 4.254 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.003255/0.619, allocations: 1.92 MB / 0.5355 GB, free: 2.074 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.2304/0.8495, allocations: 3.337 MB / 0.5387 GB, free: 125.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.371e-05/0.8495, allocations: 5.906 kB / 0.5387 GB, free: 125.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.007373/0.8569, allocations: 4.259 MB / 0.5429 GB, free: 124.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.011e-05/0.857, allocations: 16.27 kB / 0.5429 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.019e-05/0.857, allocations: 19.53 kB / 0.5429 GB, free: 124.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002303/0.8593, allocations: 0.7736 MB / 0.5437 GB, free: 123.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002009/0.8613, allocations: 0.5643 MB / 0.5442 GB, free: 123.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008737/0.8701, allocations: 10.87 MB / 0.5548 GB, free: 115.6 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002485/0.8726, allocations: 106.9 kB / 0.5549 GB, free: 115.5 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003572/0.873, allocations: 101.2 kB / 0.555 GB, free: 115.5 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.002926/0.8759, allocations: 1.618 MB / 0.5566 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007853/0.8767, allocations: 331.1 kB / 0.5569 GB, free: 114.7 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00575/0.8825, allocations: 3.907 MB / 0.5607 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.652e-05/0.8825, allocations: 21.34 kB / 0.5608 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.394e-05/0.8825, allocations: 18.36 kB / 0.5608 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.932e-05/0.8826, allocations: 7.266 kB / 0.5608 GB, free: 112.9 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01289/0.8954, allocations: 8.563 MB / 0.5692 GB, free: 105.8 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.017e-05/0.8955, allocations: 4 kB / 0.5692 GB, free: 105.8 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001403/0.8969, allocations: 340.6 kB / 0.5695 GB, free: 105.4 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002848/0.8998, allocations: 0.9388 MB / 0.5704 GB, free: 104.5 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0002247/0.9, allocations: 63.97 kB / 0.5705 GB, free: 104.4 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01139/0.9114, allocations: 15.72 MB / 0.5858 GB, free: 88.06 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.9114, allocations: 4.031 kB / 0.5858 GB, free: 88.06 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008091/0.9195, allocations: 5.702 MB / 0.5914 GB, free: 82.38 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001523/0.9211, allocations: 0.7019 MB / 0.5921 GB, free: 81.66 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008857/0.922, allocations: 52 kB / 0.5921 GB, free: 81.61 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001835/0.9238, allocations: 111.9 kB / 0.5922 GB, free: 81.5 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004496/0.9243, allocations: 189.7 kB / 0.5924 GB, free: 81.31 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001714/0.9245, allocations: 64.73 kB / 0.5925 GB, free: 81.25 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.003078/0.9276, allocations: 2.054 MB / 0.5945 GB, free: 79.19 MB / 462.1 MB Notification: Performance of sort global known variables: time 3.9e-07/0.9276, allocations: 4 kB / 0.5945 GB, free: 79.19 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003418/0.931, allocations: 0.9452 MB / 0.5954 GB, free: 78.25 MB / 462.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.008212/0.9392, allocations: 6.423 MB / 0.6017 GB, free: 71.73 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005334/0.9446, allocations: 3.918 MB / 0.6055 GB, free: 67.75 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 7.093e-06/0.9447, allocations: 4.188 kB / 0.6055 GB, free: 67.75 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003497/0.9482, allocations: 2.637 MB / 0.6081 GB, free: 65.04 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.005141/0.9533, allocations: 0.9057 MB / 0.609 GB, free: 64.14 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05573/1.009, allocations: 33.8 MB / 0.642 GB, free: 29.52 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.004189/1.013, allocations: 3.422 MB / 0.6453 GB, free: 26.07 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002946/1.016, allocations: 0.7565 MB / 0.646 GB, free: 25.3 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002911/1.019, allocations: 1.839 MB / 0.6478 GB, free: 23.46 MB / 462.1 MB Notification: Performance of SimCode: time 9.42e-07/1.019, allocations: 4 kB / 0.6478 GB, free: 23.46 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1944/1.214, allocations: 85.33 MB / 0.7312 GB, free: 2.898 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 16.74/17.96, allocations: 18.75 kB / 0.7312 GB, free: 2.883 MB / 0.5137 GB (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) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/InductionMachines/IMC_Transformer/IMC_Transformer.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.InductionMachines.IMC_Transformer.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches