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.002026/0.002026, allocations: 101.4 kB / 17.58 MB, free: 5.426 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.002423/0.002423, allocations: 192.2 kB / 18.51 MB, free: 4.508 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.983/2.983, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.002163/0.002163, allocations: 60.12 kB / 280.8 MB, free: 3.074 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1726/0.1748, allocations: 46.62 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Transformer): time 0.03057/0.2054, allocations: 16.75 MB / 344.1 MB, free: 3.543 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.023/0.2286, allocations: 5.705 MB / 349.8 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006774/0.2355, allocations: 95.56 kB / 349.9 MB, free: 13.73 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.008188/0.2437, allocations: 1.336 MB / 351.3 MB, free: 12.38 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01183/0.2556, allocations: 1.775 MB / 353 MB, free: 10.6 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00662/0.2623, allocations: 1.056 MB / 354.1 MB, free: 9.539 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01417/0.2765, allocations: 6.307 MB / 360.4 MB, free: 3.203 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01429/0.2908, allocations: 5.28 MB / 365.7 MB, free: 13.84 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.009271/0.3002, allocations: 2.935 MB / 368.6 MB, free: 10.9 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.009911/0.3101, allocations: 3.332 MB / 372 MB, free: 7.559 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.005465/0.3156, allocations: 0.7891 MB / 372.7 MB, free: 6.77 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00744/0.3231, allocations: 1.066 MB / 373.8 MB, free: 5.703 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.005359/0.3285, allocations: 1.87 MB / 375.7 MB, free: 3.828 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01047/0.339, allocations: 3.341 MB / 379 MB, free: 484 kB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.3866/0.7257, allocations: 10.43 MB / 389.5 MB, free: 22.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.419e-05/0.7258, allocations: 3.75 kB / 389.5 MB, free: 22.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.619e-06/0.7258, allocations: 0 / 389.5 MB, free: 22.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.0005242/0.7264, allocations: 1.156 kB / 389.5 MB, free: 22.97 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.04386/0.7702, allocations: 6.511 MB / 396 MB, free: 20.15 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.542e-05/0.7704, allocations: 13.81 kB / 396 MB, free: 20.15 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005117/0.7755, allocations: 0.6727 MB / 396.7 MB, free: 19.96 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01108/0.7866, allocations: 1.058 MB / 397.7 MB, free: 19.52 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01391/0.8006, allocations: 3.377 MB / 401.1 MB, free: 18.33 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000898/0.8015, allocations: 367 kB / 401.4 MB, free: 18.16 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003891/0.8054, allocations: 492.1 kB / 401.9 MB, free: 18 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.03578/0.8413, allocations: 6.872 MB / 408.8 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.000373/0.8417, allocations: 4 kB / 408.8 MB, free: 13.96 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00306/0.8448, allocations: 203.9 kB / 409 MB, free: 13.8 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0003817/0.8452, allocations: 243.8 kB / 409.2 MB, free: 13.77 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02368/0.8689, allocations: 5.921 MB / 415.2 MB, free: 10.62 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.07178/0.9407, allocations: 20.93 MB / 436.1 MB, free: 6.648 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.02131/0.9621, allocations: 9.951 MB / 446 MB, free: 11.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.008949/0.9712, allocations: 2.493 MB / 448.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0287/1, allocations: 6.515 MB / 455.1 MB, free: 2.66 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001586/1, allocations: 56.56 kB / 455.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of pre-optimization done (n=219): time 1.588e-05/1, allocations: 0 / 455.1 MB, free: 2.594 MB / 350.1 MB Notification: Performance of matching and sorting (n=226): time 0.04503/1.045, allocations: 9.683 MB / 464.8 MB, free: 8.75 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001162/1.046, allocations: 73.41 kB / 464.9 MB, free: 8.668 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01518/1.061, allocations: 2.992 MB / 467.9 MB, free: 5.66 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001315/1.062, allocations: 69.7 kB / 467.9 MB, free: 5.586 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.005295/1.068, allocations: 2.154 MB / 470.1 MB, free: 3.418 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00233/1.07, allocations: 0.7589 MB / 470.8 MB, free: 2.664 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001921/1.072, allocations: 465.1 kB / 471.3 MB, free: 2.203 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0003117/1.072, allocations: 301.1 kB / 471.6 MB, free: 1.906 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.004902/1.077, allocations: 1.293 MB / 472.9 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.005625/1.083, allocations: 1.919 MB / 474.8 MB, free: 14.43 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.009324/1.092, allocations: 3.343 MB / 478.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.416e-05/1.092, allocations: 7.375 kB / 478.1 MB, free: 10.91 MB / 382.1 MB Notification: Performance of matching and sorting (n=328) (initialization): time 0.01365/1.106, allocations: 4.242 MB / 482.4 MB, free: 6.75 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.802e-05/1.106, allocations: 20.03 kB / 482.4 MB, free: 6.73 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.381e-05/1.106, allocations: 20 kB / 482.4 MB, free: 6.711 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.004429/1.111, allocations: 0.7787 MB / 483.2 MB, free: 5.926 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.004588/1.115, allocations: 0.5658 MB / 483.8 MB, free: 5.391 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.02109/1.136, allocations: 10.9 MB / 494.7 MB, free: 9.992 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.006076/1.143, allocations: 104.2 kB / 494.8 MB, free: 9.891 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001029/1.144, allocations: 104 kB / 494.9 MB, free: 9.789 MB / 398.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.007636/1.151, allocations: 1.616 MB / 496.5 MB, free: 8.195 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002133/1.153, allocations: 312.2 kB / 496.8 MB, free: 7.887 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01436/1.168, allocations: 3.913 MB / 0.489 GB, free: 3.941 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.008e-05/1.168, allocations: 20 kB / 0.489 GB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.113e-05/1.168, allocations: 16 kB / 0.489 GB, free: 3.906 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.199e-05/1.168, allocations: 15.94 kB / 0.489 GB, free: 3.891 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03744/1.206, allocations: 8.561 MB / 0.4974 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.524e-05/1.206, allocations: 4.031 kB / 0.4974 GB, free: 11.27 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.002998/1.209, allocations: 346.1 kB / 0.4977 GB, free: 10.95 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.005574/1.214, allocations: 0.9437 MB / 0.4986 GB, free: 9.988 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0007285/1.215, allocations: 55.98 kB / 0.4987 GB, free: 9.934 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.03436/1.249, allocations: 15.69 MB / 0.514 GB, free: 9.496 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.224e-05/1.25, allocations: 4.031 kB / 0.514 GB, free: 9.492 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.02093/1.271, allocations: 5.693 MB / 0.5196 GB, free: 3.742 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.00466/1.275, allocations: 0.6885 MB / 0.5203 GB, free: 3.031 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002324/1.278, allocations: 55.98 kB / 0.5203 GB, free: 2.977 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.004464/1.282, allocations: 107.9 kB / 0.5204 GB, free: 2.871 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001131/1.283, allocations: 191.9 kB / 0.5206 GB, free: 2.691 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0004965/1.284, allocations: 59.98 kB / 0.5206 GB, free: 2.633 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.008762/1.293, allocations: 2.07 MB / 0.5227 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.012e-06/1.293, allocations: 0 / 0.5227 GB, free: 0.5625 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.009682/1.302, allocations: 0.9336 MB / 0.5236 GB, free: 15.62 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,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.0198/1.322, allocations: 6.403 MB / 0.5298 GB, free: 9.18 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.01871/1.341, allocations: 5.371 MB / 0.5351 GB, free: 3.824 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.744e-05/1.341, allocations: 6.875 kB / 0.5351 GB, free: 3.82 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007458/1.349, allocations: 2.639 MB / 0.5377 GB, free: 1.137 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.01054/1.359, allocations: 0.9081 MB / 0.5386 GB, free: 232 kB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.4156/1.775, allocations: 39.95 MB / 0.5776 GB, free: 143.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005496/1.78, allocations: 3.428 MB / 0.5809 GB, free: 139.8 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.004508/1.785, allocations: 0.7565 MB / 0.5817 GB, free: 139 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.004309/1.789, allocations: 1.831 MB / 0.5834 GB, free: 137.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.583e-06/1.789, allocations: 4 kB / 0.5834 GB, free: 137.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2588/2.048, allocations: 86.37 MB / 0.6678 GB, free: 50.69 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.68/20.73, allocations: 18.73 kB / 0.6678 GB, free: 50.68 MB / 446.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