Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.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.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SMPM_Inverter",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.002356/0.002356, allocations: 98.28 kB / 17.58 MB, free: 5.418 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.002987/0.002988, allocations: 192.1 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.515/2.515, allocations: 205.1 MB / 224.4 MB, free: 12.31 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.002365/0.002365, allocations: 51.92 kB / 280.8 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1585/0.1609, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter): time 0.04/0.201, allocations: 21.68 MB / 349.1 MB, free: 14.6 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0202/0.2213, allocations: 6.442 MB / 355.5 MB, free: 8.133 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.006955/0.2283, allocations: 127.5 kB / 355.6 MB, free: 8.008 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.009269/0.2377, allocations: 1.471 MB / 357.1 MB, free: 6.527 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.01558/0.2534, allocations: 2.046 MB / 359.1 MB, free: 4.469 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.007818/0.2613, allocations: 1.306 MB / 360.5 MB, free: 3.16 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.01324/0.2745, allocations: 6.488 MB / 366.9 MB, free: 12.64 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.01215/0.2867, allocations: 5.515 MB / 372.5 MB, free: 7.047 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.006418/0.2932, allocations: 2.979 MB / 375.4 MB, free: 4.059 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.007326/0.3006, allocations: 3.553 MB / 379 MB, free: 0.4922 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.3404/0.641, allocations: 0.816 MB / 379.8 MB, free: 21.11 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.008696/0.6498, allocations: 1.106 MB / 380.9 MB, free: 21.11 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.007866/0.6577, allocations: 2.022 MB / 382.9 MB, free: 21.11 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.01573/0.6735, allocations: 3.535 MB / 386.5 MB, free: 20.64 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.02744/0.701, allocations: 10.69 MB / 397.2 MB, free: 19.33 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.454e-05/0.7011, allocations: 0 / 397.2 MB, free: 19.33 MB / 318.1 MB Notification: Performance of FrontEnd: time 4.178e-06/0.7012, allocations: 0 / 397.2 MB, free: 19.33 MB / 318.1 MB Notification: Performance of Transformations before backend: time 0.000584/0.7018, allocations: 1.25 kB / 397.2 MB, free: 19.33 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.04504/0.7468, allocations: 6.917 MB / 404.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.792e-05/0.7469, allocations: 13.16 kB / 404.1 MB, free: 15.38 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.005237/0.7522, allocations: 0.7362 MB / 404.8 MB, free: 14.84 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.01294/0.7652, allocations: 1.064 MB / 405.9 MB, free: 14.32 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.01562/0.7808, allocations: 3.475 MB / 409.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0008397/0.7817, allocations: 415.8 kB / 409.8 MB, free: 11.83 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.003982/0.7858, allocations: 0.5293 MB / 410.3 MB, free: 11.64 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0378/0.8236, allocations: 7.046 MB / 417.3 MB, free: 7.551 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0003664/0.824, allocations: 15.62 kB / 417.4 MB, free: 7.543 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00361/0.8277, allocations: 217.9 kB / 417.6 MB, free: 7.379 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0005089/0.8282, allocations: 261.6 kB / 417.8 MB, free: 7.336 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.02852/0.8568, allocations: 5.94 MB / 423.8 MB, free: 2.43 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0996/0.9564, allocations: 22.44 MB / 446.2 MB, free: 11.92 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.01809/0.9746, allocations: 8.275 MB / 454.5 MB, free: 2.762 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.009562/0.9843, allocations: 2.188 MB / 456.7 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.02399/1.008, allocations: 6.174 MB / 462.8 MB, free: 10.35 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001001/1.009, allocations: 56.56 kB / 462.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of pre-optimization done (n=220): time 1.209e-05/1.009, allocations: 3.984 kB / 462.9 MB, free: 10.29 MB / 366.1 MB Notification: Performance of matching and sorting (n=240): time 0.05192/1.061, allocations: 11.16 MB / 474.1 MB, free: 14.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001339/1.061, allocations: 77.41 kB / 474.1 MB, free: 14.84 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.01492/1.076, allocations: 3.152 MB / 477.3 MB, free: 11.68 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.001006/1.077, allocations: 61.7 kB / 477.4 MB, free: 11.62 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.004822/1.082, allocations: 2.502 MB / 479.9 MB, free: 9.098 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.002479/1.084, allocations: 0.8213 MB / 480.7 MB, free: 8.281 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.003351/1.088, allocations: 0.5647 MB / 481.2 MB, free: 7.711 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001782/1.088, allocations: 308.2 kB / 481.5 MB, free: 7.41 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.005984/1.094, allocations: 1.334 MB / 482.9 MB, free: 6.074 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.006908/1.101, allocations: 2.336 MB / 485.2 MB, free: 3.305 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.01158/1.112, allocations: 3.92 MB / 489.1 MB, free: 15.04 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.088e-05/1.113, allocations: 12 kB / 489.1 MB, free: 15.03 MB / 398.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.01737/1.13, allocations: 4.708 MB / 493.9 MB, free: 10.41 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.861e-05/1.13, allocations: 20 kB / 493.9 MB, free: 10.39 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.831e-05/1.13, allocations: 32 kB / 493.9 MB, free: 10.36 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.002201/1.132, allocations: 0.5245 MB / 494.4 MB, free: 9.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.005133/1.138, allocations: 0.7433 MB / 495.2 MB, free: 9.125 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.01484/1.152, allocations: 10.29 MB / 0.4936 GB, free: 14.21 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.005335/1.158, allocations: 191.7 kB / 0.4938 GB, free: 14.02 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.001238/1.159, allocations: 140 kB / 0.4939 GB, free: 13.89 MB / 414.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 144 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (380): * Single equations (assignments): 373 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 5 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 5 systems {(3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (1,1,100.0%), (1,5,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.008884/1.168, allocations: 1.576 MB / 0.4955 GB, free: 12.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.002149/1.17, allocations: 343.8 kB / 0.4958 GB, free: 12.01 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.01472/1.185, allocations: 4.051 MB / 0.4998 GB, free: 7.887 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-05/1.185, allocations: 28 kB / 0.4998 GB, free: 7.859 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.761e-05/1.185, allocations: 8 kB / 0.4998 GB, free: 7.852 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.224e-05/1.185, allocations: 11.95 kB / 0.4998 GB, free: 7.84 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.03815/1.223, allocations: 8.979 MB / 0.5086 GB, free: 14.79 MB / 430.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.042e-05/1.224, allocations: 4 kB / 0.5086 GB, free: 14.78 MB / 430.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.003992/1.228, allocations: 413.3 kB / 0.509 GB, free: 14.39 MB / 430.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.004123/1.232, allocations: 0.7361 MB / 0.5097 GB, free: 13.64 MB / 430.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000701/1.232, allocations: 67.97 kB / 0.5097 GB, free: 13.57 MB / 430.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.02972/1.262, allocations: 16.74 MB / 0.5261 GB, free: 11.8 MB / 446.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.126e-05/1.262, allocations: 4 kB / 0.5261 GB, free: 11.79 MB / 446.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0211/1.283, allocations: 5.846 MB / 0.5318 GB, free: 5.816 MB / 446.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.004868/1.288, allocations: 0.696 MB / 0.5325 GB, free: 5.098 MB / 446.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.002243/1.291, allocations: 63.92 kB / 0.5325 GB, free: 5.035 MB / 446.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.005583/1.296, allocations: 140 kB / 0.5327 GB, free: 4.898 MB / 446.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.001252/1.298, allocations: 183.3 kB / 0.5329 GB, free: 4.723 MB / 446.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0005278/1.298, allocations: 71.97 kB / 0.5329 GB, free: 4.652 MB / 446.1 MB Notification: Performance of sorting global known variables: time 0.009129/1.307, allocations: 2.13 MB / 0.535 GB, free: 2.531 MB / 446.1 MB Notification: Performance of sort global known variables: time 8.71e-07/1.307, allocations: 0 / 0.535 GB, free: 2.531 MB / 446.1 MB Notification: Performance of remove unused functions: time 0.01047/1.318, allocations: 0.9884 MB / 0.536 GB, free: 1.543 MB / 446.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 20 * Number of states: 13 (vfController.x,smpmM.inertiaRotor.w,smpmM.stator.core.Phi.re,smpmM.stator.core.Phi.im,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.re,smpmM.rotorCage.electroMagneticConverter.singlePhaseElectroMagneticConverter[2].Phi.im,smpmE.inertiaRotor.w,smpmE.idq_sr[1],smpmE.idq_sr[2],smpmE.idq_rr[2],smpmE.idq_dr[1],loadInertiaM.phi,loadInertiaE.phi) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (201): * Single equations (assignments): 193 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 8 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 8 systems {(1,5,100.0%), (3,12,100.0%), (1,3,100.0%), (1,1,100.0%), (2,1,100.0%), (1,1,100.0%), (1,8,100.0%), (2,13,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.4134/1.731, allocations: 6.532 MB / 0.5424 GB, free: 155.5 MB / 446.1 MB Notification: Performance of simCode: created initialization part: time 0.02126/1.753, allocations: 5.723 MB / 0.5479 GB, free: 154.6 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 1.42e-05/1.753, allocations: 0 / 0.5479 GB, free: 154.6 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.007321/1.76, allocations: 2.764 MB / 0.5506 GB, free: 153.4 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00908/1.769, allocations: 0.9524 MB / 0.5516 GB, free: 153.1 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1017/1.871, allocations: 43.14 MB / 0.5937 GB, free: 116 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.005605/1.877, allocations: 3.403 MB / 0.597 GB, free: 113.1 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.005617/1.882, allocations: 0.8112 MB / 0.5978 GB, free: 112.3 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.005134/1.888, allocations: 2.104 MB / 0.5999 GB, free: 110.2 MB / 446.1 MB Notification: Performance of SimCode: time 1.153e-06/1.888, allocations: 3.938 kB / 0.5999 GB, free: 110.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2428/2.13, allocations: 89.32 MB / 0.6871 GB, free: 20.65 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.95/21.08, allocations: 9.078 kB / 0.6871 GB, free: 20.64 MB / 446.1 MB (rm -f Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.csv --start-time 0 --stop-time 1.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_SMPM_Inverter.fmu > Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches