Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.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_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_AIMC_Steinmetz",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.001097/0.001097, allocations: 110.5 kB / 17.73 MB, free: 5.363 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.001183/0.001183, allocations: 183.1 kB / 18.66 MB, free: 4.445 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.396/1.396, allocations: 205.1 MB / 224.5 MB, free: 12.25 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.001248/0.001248, allocations: 51.92 kB / 328 MB, free: 3.789 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08718/0.08843, 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_Steinmetz): time 0.2062/0.2947, allocations: 13.58 MB / 388.2 MB, free: 5.492 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.01041/0.3052, allocations: 4.433 MB / 392.7 MB, free: 2.625 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003534/0.3088, allocations: 71.47 kB / 392.7 MB, free: 2.605 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004916/0.3137, allocations: 1 MB / 393.7 MB, free: 2.07 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008269/0.322, allocations: 1.307 MB / 395.1 MB, free: 1.203 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004872/0.3269, allocations: 0.9046 MB / 396 MB, free: 0.625 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.009479/0.3364, allocations: 4.097 MB / 400.1 MB, free: 14.49 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.007094/0.3436, allocations: 3.192 MB / 403.2 MB, free: 13.1 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004518/0.3481, allocations: 1.882 MB / 405.1 MB, free: 12.16 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.004979/0.3531, allocations: 2.091 MB / 407.2 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.00202/0.3551, allocations: 0.5079 MB / 407.7 MB, free: 11.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003637/0.3588, allocations: 0.7079 MB / 408.4 MB, free: 11.03 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002603/0.3614, allocations: 1.119 MB / 409.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006392/0.3678, allocations: 2.138 MB / 411.7 MB, free: 8.855 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0113/0.3792, allocations: 6.694 MB / 418.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.746e-06/0.3792, allocations: 1.062 kB / 418.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.355e-06/0.3792, allocations: 0 / 418.4 MB, free: 3.797 MB / 334.1 MB Notification: Performance of Transformations before backend: time 0.0002581/0.3795, allocations: 0 / 418.4 MB, free: 3.797 MB / 334.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 844 * Number of variables: 844 Notification: Performance of Generate backend data structure: time 0.01657/0.396, allocations: 4.411 MB / 422.8 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.736e-05/0.3961, allocations: 8.031 kB / 422.8 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001632/0.3978, allocations: 459.8 kB / 423.3 MB, free: 15.23 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005146/0.4029, allocations: 0.8085 MB / 424.1 MB, free: 14.42 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.005752/0.4087, allocations: 2.291 MB / 426.4 MB, free: 12.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002747/0.409, allocations: 243 kB / 426.6 MB, free: 11.83 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001161/0.4102, allocations: 323.8 kB / 426.9 MB, free: 11.52 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0109/0.4211, allocations: 4.27 MB / 431.2 MB, free: 7.191 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001195/0.4212, allocations: 4 kB / 431.2 MB, free: 7.188 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0006742/0.4219, allocations: 128 kB / 431.3 MB, free: 7.062 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002107/0.4222, allocations: 150.4 kB / 431.5 MB, free: 6.914 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00798/0.4301, allocations: 3.597 MB / 435.1 MB, free: 3.309 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.02885/0.459, allocations: 13.7 MB / 448.8 MB, free: 5.223 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.007421/0.4665, allocations: 6.571 MB / 455.3 MB, free: 13.82 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00265/0.4692, allocations: 1.398 MB / 456.7 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.007154/0.4763, allocations: 3.62 MB / 460.3 MB, free: 8.703 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.4764, allocations: 51.86 kB / 460.4 MB, free: 8.645 MB / 382.1 MB Notification: Performance of pre-optimization done (n=134): time 3.957e-06/0.4764, allocations: 4 kB / 460.4 MB, free: 8.641 MB / 382.1 MB Notification: Performance of matching and sorting (n=137): time 0.01269/0.4891, allocations: 5.871 MB / 466.3 MB, free: 2.555 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.134e-05/0.4892, allocations: 68.66 kB / 466.3 MB, free: 2.477 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00363/0.4929, allocations: 1.788 MB / 468.1 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001306/0.493, allocations: 53.7 kB / 468.2 MB, free: 0.6289 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001191/0.4942, allocations: 1.434 MB / 469.6 MB, free: 15.18 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004525/0.4947, allocations: 473.1 kB / 470.1 MB, free: 14.71 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005809/0.4953, allocations: 319.2 kB / 470.4 MB, free: 14.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001215/0.4954, allocations: 305.1 kB / 470.7 MB, free: 14.09 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001239/0.4967, allocations: 0.6754 MB / 471.4 MB, free: 13.41 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001568/0.4982, allocations: 1.205 MB / 472.6 MB, free: 11.98 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002856/0.5011, allocations: 1.999 MB / 474.6 MB, free: 9.766 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.578e-05/0.5011, allocations: 4 kB / 474.6 MB, free: 9.762 MB / 398.1 MB Notification: Performance of matching and sorting (n=223) (initialization): time 0.004848/0.506, allocations: 2.547 MB / 477.1 MB, free: 7.172 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.713e-05/0.5061, allocations: 12 kB / 477.1 MB, free: 7.16 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.3e-05/0.5061, allocations: 16 kB / 477.1 MB, free: 7.145 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001025/0.5071, allocations: 356.1 kB / 477.5 MB, free: 6.781 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001424/0.5086, allocations: 383.4 kB / 477.9 MB, free: 6.406 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008401/0.517, allocations: 8.414 MB / 486.3 MB, free: 13.43 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001907/0.5189, allocations: 67.97 kB / 486.3 MB, free: 13.36 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002932/0.5192, allocations: 75.98 kB / 486.4 MB, free: 13.29 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 72 * Number of states: 0 () * Number of discrete variables: 2 (idealOpener.control,idealCloser.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (192): * Single equations (assignments): 187 * 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,7,100.0%), (2,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.002365/0.5216, allocations: 1.005 MB / 487.4 MB, free: 12.27 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006014/0.5222, allocations: 193.6 kB / 487.6 MB, free: 12.08 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004551/0.5268, allocations: 2.285 MB / 489.9 MB, free: 9.727 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.433e-05/0.5268, allocations: 12 kB / 489.9 MB, free: 9.715 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.377e-05/0.5269, allocations: 8 kB / 489.9 MB, free: 9.707 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.535e-05/0.5269, allocations: 8.156 kB / 489.9 MB, free: 9.699 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009934/0.5368, allocations: 5.079 MB / 495 MB, free: 4.48 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.895e-06/0.5369, allocations: 3.938 kB / 495 MB, free: 4.477 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008056/0.5377, allocations: 183.9 kB / 495.2 MB, free: 4.297 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001485/0.5392, allocations: 0.5242 MB / 495.7 MB, free: 3.754 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001174/0.5393, allocations: 35.98 kB / 495.7 MB, free: 3.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01419/0.5535, allocations: 13.22 MB / 0.497 GB, free: 5.664 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.315e-06/0.5535, allocations: 0 / 0.497 GB, free: 5.664 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005843/0.5594, allocations: 3.218 MB / 0.5002 GB, free: 2.355 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001405/0.5608, allocations: 426.6 kB / 0.5006 GB, free: 1.918 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006715/0.5615, allocations: 35.94 kB / 0.5006 GB, free: 1.883 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001334/0.5629, allocations: 67.95 kB / 0.5007 GB, free: 1.816 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003262/0.5632, allocations: 105.2 kB / 0.5008 GB, free: 1.715 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001097/0.5633, allocations: 35.98 kB / 0.5008 GB, free: 1.68 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002451/0.5658, allocations: 1.227 MB / 0.502 GB, free: 472 kB / 430.1 MB Notification: Performance of sort global known variables: time 4.3e-07/0.5658, allocations: 4 kB / 0.502 GB, free: 468 kB / 430.1 MB Notification: Performance of remove unused functions: time 0.002956/0.5688, allocations: 0.5743 MB / 0.5026 GB, free: 15.88 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 7 * 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,quadraticLoadTorque.phi,cRun.v,cStart.v) * Number of discrete variables: 2 (idealCloser.control,idealOpener.control) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (86): * Single equations (assignments): 80 * 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,7,100.0%), (2,8,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.005834/0.5746, allocations: 3.833 MB / 0.5063 GB, free: 11.95 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.004034/0.5787, allocations: 2.363 MB / 0.5086 GB, free: 9.512 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.5787, allocations: 4.062 kB / 0.5086 GB, free: 9.508 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002753/0.5814, allocations: 1.752 MB / 0.5104 GB, free: 7.68 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003015/0.5845, allocations: 0.5502 MB / 0.5109 GB, free: 7.129 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03739/0.6219, allocations: 20.15 MB / 0.5306 GB, free: 2.23 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003066/0.625, allocations: 2.307 MB / 0.5328 GB, free: 15.9 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.001448/0.6265, allocations: 397 kB / 0.5332 GB, free: 15.51 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001629/0.6281, allocations: 1.128 MB / 0.5343 GB, free: 14.38 MB / 478.1 MB Notification: Performance of SimCode: time 1.102e-06/0.6281, allocations: 0 / 0.5343 GB, free: 14.38 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3127/0.9408, allocations: 53.4 MB / 0.5865 GB, free: 137.3 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.44/14.38, allocations: 12.89 kB / 0.5865 GB, free: 137.3 MB / 478.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_res.csv --start-time 0 --stop-time 1 --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_Steinmetz.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz_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_Steinmetz/AIMC_Steinmetz.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.AIMC_Steinmetz.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches