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.001152/0.001152, allocations: 109.2 kB / 17.73 MB, free: 5.301 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.001226/0.001226, allocations: 188.2 kB / 18.66 MB, free: 4.375 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.423/1.423, allocations: 205.1 MB / 224.5 MB, free: 12.2 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.001529/0.001529, allocations: 55.92 kB / 328 MB, free: 3.781 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09928/0.1008, allocations: 46.62 MB / 374.7 MB, free: 5.051 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.2115/0.3124, allocations: 16.75 MB / 391.4 MB, free: 3.441 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01362/0.3261, allocations: 5.726 MB / 397.1 MB, free: 15.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006223/0.3324, allocations: 93.34 kB / 397.2 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.006096/0.3386, allocations: 1.328 MB / 398.6 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008193/0.3468, allocations: 1.783 MB / 400.3 MB, free: 13.47 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003958/0.3508, allocations: 1.058 MB / 401.4 MB, free: 12.79 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.01013/0.3609, allocations: 6.317 MB / 407.7 MB, free: 9.543 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01008/0.371, allocations: 5.284 MB / 413 MB, free: 7.281 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.007278/0.3784, allocations: 2.93 MB / 415.9 MB, free: 5.566 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007602/0.386, allocations: 3.335 MB / 419.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.003195/0.3892, allocations: 0.7891 MB / 420.1 MB, free: 2.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.005059/0.3943, allocations: 1.066 MB / 421.1 MB, free: 1.449 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.003711/0.3981, allocations: 1.866 MB / 423 MB, free: 15.58 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.008439/0.4065, allocations: 3.345 MB / 426.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01675/0.4233, allocations: 10.5 MB / 436.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.434e-06/0.4234, allocations: 0 / 436.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of FrontEnd: time 4.889e-06/0.4234, allocations: 0 / 436.8 MB, free: 1.684 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0003479/0.4238, allocations: 3.938 kB / 436.8 MB, free: 1.68 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.02283/0.4466, allocations: 6.522 MB / 443.4 MB, free: 11.07 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.012e-05/0.4467, allocations: 12.03 kB / 443.4 MB, free: 11.06 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002946/0.4496, allocations: 0.6711 MB / 444 MB, free: 10.38 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00671/0.4564, allocations: 1.06 MB / 445.1 MB, free: 9.312 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00907/0.4655, allocations: 3.416 MB / 448.5 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004385/0.466, allocations: 369.6 kB / 448.9 MB, free: 5.457 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001982/0.468, allocations: 479.9 kB / 449.4 MB, free: 4.988 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01784/0.4858, allocations: 6.873 MB / 456.2 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002071/0.4861, allocations: 0 / 456.2 MB, free: 14.04 MB / 382.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.001453/0.4875, allocations: 200 kB / 456.4 MB, free: 13.84 MB / 382.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002777/0.4878, allocations: 245.8 kB / 456.7 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01371/0.5016, allocations: 5.922 MB / 462.6 MB, free: 7.664 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0421/0.5437, allocations: 20.66 MB / 483.2 MB, free: 2.562 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01099/0.5548, allocations: 9.967 MB / 493.2 MB, free: 7.562 MB / 414.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004819/0.5596, allocations: 2.477 MB / 495.7 MB, free: 5.078 MB / 414.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01423/0.5739, allocations: 6.49 MB / 0.4904 GB, free: 14.47 MB / 430.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.698e-05/0.574, allocations: 60.56 kB / 0.4905 GB, free: 14.41 MB / 430.1 MB Notification: Performance of pre-optimization done (n=219): time 7.294e-06/0.574, allocations: 0 / 0.4905 GB, free: 14.41 MB / 430.1 MB Notification: Performance of matching and sorting (n=226): time 0.02187/0.5959, allocations: 9.683 MB / 0.4999 GB, free: 4.508 MB / 430.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.636e-05/0.596, allocations: 77.41 kB / 0.5 GB, free: 4.418 MB / 430.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006652/0.6027, allocations: 2.988 MB / 0.5029 GB, free: 1.414 MB / 430.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004745/0.6032, allocations: 69.7 kB / 0.503 GB, free: 1.34 MB / 430.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001876/0.6051, allocations: 2.156 MB / 0.5051 GB, free: 15.16 MB / 446.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000934/0.606, allocations: 0.7546 MB / 0.5058 GB, free: 14.39 MB / 446.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00124/0.6073, allocations: 469 kB / 0.5063 GB, free: 13.93 MB / 446.1 MB Notification: Performance of setup shared object (initialization): time 0.0001006/0.6074, allocations: 305.1 kB / 0.5066 GB, free: 13.63 MB / 446.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002362/0.6098, allocations: 1.293 MB / 0.5078 GB, free: 12.33 MB / 446.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002906/0.6127, allocations: 1.92 MB / 0.5097 GB, free: 10.15 MB / 446.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005334/0.6181, allocations: 3.344 MB / 0.513 GB, free: 6.555 MB / 446.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.282e-05/0.6182, allocations: 4 kB / 0.513 GB, free: 6.551 MB / 446.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.00898/0.6271, allocations: 4.245 MB / 0.5171 GB, free: 2.262 MB / 446.1 MB Notification: Performance of prepare postOptimizeDAE: time 4.133e-05/0.6272, allocations: 12 kB / 0.5171 GB, free: 2.25 MB / 446.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.003e-05/0.6273, allocations: 20 kB / 0.5171 GB, free: 2.23 MB / 446.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002777/0.6301, allocations: 0.7703 MB / 0.5179 GB, free: 1.445 MB / 446.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002682/0.6328, allocations: 0.5733 MB / 0.5185 GB, free: 0.8711 MB / 446.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01228/0.6451, allocations: 10.89 MB / 0.5291 GB, free: 5.422 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002544/0.6477, allocations: 104 kB / 0.5292 GB, free: 5.32 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0005185/0.6482, allocations: 104 kB / 0.5293 GB, free: 5.219 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.003655/0.6519, allocations: 1.61 MB / 0.5309 GB, free: 3.598 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.001191/0.6531, allocations: 316.2 kB / 0.5312 GB, free: 3.285 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.008609/0.6618, allocations: 3.91 MB / 0.535 GB, free: 15.31 MB / 478.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.476e-05/0.6618, allocations: 20 kB / 0.535 GB, free: 15.29 MB / 478.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.078e-05/0.6619, allocations: 12 kB / 0.535 GB, free: 15.28 MB / 478.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.081e-05/0.6619, allocations: 7.969 kB / 0.535 GB, free: 15.27 MB / 478.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01937/0.6813, allocations: 8.571 MB / 0.5434 GB, free: 6.543 MB / 478.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.33e-05/0.6814, allocations: 8.031 kB / 0.5434 GB, free: 6.535 MB / 478.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001828/0.6832, allocations: 339.5 kB / 0.5437 GB, free: 6.203 MB / 478.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.003471/0.6867, allocations: 0.9342 MB / 0.5446 GB, free: 5.25 MB / 478.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0004467/0.6872, allocations: 63.91 kB / 0.5447 GB, free: 5.188 MB / 478.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.2559/0.9431, allocations: 15.67 MB / 0.56 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.9431, allocations: 5.906 kB / 0.56 GB, free: 141.7 MB / 478.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.01004/0.9532, allocations: 5.705 MB / 0.5656 GB, free: 139.3 MB / 478.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002215/0.9554, allocations: 0.6808 MB / 0.5662 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007244/0.9562, allocations: 54.75 kB / 0.5663 GB, free: 139 MB / 478.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001643/0.9578, allocations: 107.9 kB / 0.5664 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000585/0.9584, allocations: 189.7 kB / 0.5666 GB, free: 138.9 MB / 478.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001541/0.9586, allocations: 63 kB / 0.5666 GB, free: 138.9 MB / 478.1 MB Notification: Performance of sorting global known variables: time 0.003903/0.9625, allocations: 2.064 MB / 0.5687 GB, free: 138.1 MB / 478.1 MB Notification: Performance of sort global known variables: time 6.01e-07/0.9625, allocations: 1.312 kB / 0.5687 GB, free: 138.1 MB / 478.1 MB Notification: Performance of remove unused functions: time 0.004245/0.9668, allocations: 0.9368 MB / 0.5696 GB, free: 138 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.01119/0.978, allocations: 6.406 MB / 0.5758 GB, free: 135 MB / 478.1 MB Notification: Performance of simCode: created initialization part: time 0.006025/0.9841, allocations: 3.912 MB / 0.5796 GB, free: 133.3 MB / 478.1 MB Notification: Performance of simCode: created event and clocks part: time 7.515e-06/0.9841, allocations: 2.656 kB / 0.5796 GB, free: 133.3 MB / 478.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003937/0.9881, allocations: 2.631 MB / 0.5822 GB, free: 131.8 MB / 478.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004462/0.9925, allocations: 0.9175 MB / 0.5831 GB, free: 131.5 MB / 478.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05123/1.044, allocations: 33.66 MB / 0.616 GB, free: 104.1 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00269/1.047, allocations: 3.429 MB / 0.6193 GB, free: 100.6 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002289/1.049, allocations: 0.7565 MB / 0.6201 GB, free: 99.83 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002084/1.051, allocations: 1.831 MB / 0.6219 GB, free: 98 MB / 478.1 MB Notification: Performance of SimCode: time 1.122e-06/1.051, allocations: 1.312 kB / 0.6219 GB, free: 98 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1322/1.183, allocations: 85.3 MB / 0.7052 GB, free: 12.57 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 16.23/17.41, allocations: 5.297 kB / 0.7052 GB, free: 12.56 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