Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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 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.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_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.001643/0.001643, allocations: 113.5 kB / 17.06 MB, free: 5.992 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.001795/0.001795, allocations: 200 kB / 18.01 MB, free: 5.066 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.491/1.491, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001394/0.001394, allocations: 47.92 kB / 350.8 MB, free: 3.703 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2988/0.3002, allocations: 49.43 MB / 400.3 MB, free: 8.422 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02585/0.3261, allocations: 21.73 MB / 422 MB, free: 2.961 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01455/0.3407, allocations: 6.405 MB / 428.4 MB, free: 12.54 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004888/0.3457, allocations: 135.5 kB / 428.5 MB, free: 12.4 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.005279/0.351, allocations: 1.486 MB / 430 MB, free: 10.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.008253/0.3593, allocations: 2.064 MB / 432.1 MB, free: 8.832 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004073/0.3634, allocations: 1.289 MB / 433.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.009965/0.3734, allocations: 6.534 MB / 439.9 MB, free: 0.9805 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008164/0.3816, allocations: 5.575 MB / 445.5 MB, free: 11.32 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005664/0.3873, allocations: 2.987 MB / 448.5 MB, free: 8.324 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006818/0.3941, allocations: 3.569 MB / 452 MB, free: 4.742 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002235/0.3964, allocations: 0.8164 MB / 452.8 MB, free: 3.926 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003522/0.3999, allocations: 1.093 MB / 453.9 MB, free: 2.832 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002344/0.4023, allocations: 2.026 MB / 456 MB, free: 0.8008 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.006616/0.4089, allocations: 3.539 MB / 459.5 MB, free: 13.24 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0146/0.4236, allocations: 10.82 MB / 470.3 MB, free: 2.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.963e-06/0.4236, allocations: 0 / 470.3 MB, free: 2.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 2.965e-06/0.4236, allocations: 0 / 470.3 MB, free: 2.387 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.0003512/0.424, allocations: 0 / 470.3 MB, free: 2.387 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: 1413 * Number of variables: 1413 Notification: Performance of Generate backend data structure: time 0.02133/0.4453, allocations: 7.085 MB / 477.4 MB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.285e-05/0.4454, allocations: 15.89 kB / 477.4 MB, free: 11.2 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001317/0.4467, allocations: 0.7368 MB / 478.2 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.004963/0.4517, allocations: 1.086 MB / 479.2 MB, free: 9.359 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.008414/0.4601, allocations: 3.771 MB / 483 MB, free: 5.516 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004307/0.4606, allocations: 413 kB / 483.4 MB, free: 5.113 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001585/0.4622, allocations: 0.5233 MB / 483.9 MB, free: 4.59 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01617/0.4784, allocations: 7.071 MB / 491 MB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001416/0.4785, allocations: 7.953 kB / 491 MB, free: 13.44 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000544/0.4791, allocations: 220 kB / 491.2 MB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002816/0.4794, allocations: 258.6 kB / 491.5 MB, free: 12.97 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01271/0.4921, allocations: 5.948 MB / 497.4 MB, free: 7.012 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.04318/0.5353, allocations: 22.22 MB / 0.5075 GB, free: 232 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009081/0.5445, allocations: 8.293 MB / 0.5156 GB, free: 7.039 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003654/0.5481, allocations: 2.159 MB / 0.5177 GB, free: 4.875 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01129/0.5595, allocations: 6.179 MB / 0.5237 GB, free: 14.56 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.64e-05/0.5596, allocations: 56.56 kB / 0.5238 GB, free: 14.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 5.08e-06/0.5596, allocations: 0 / 0.5238 GB, free: 14.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.0241/0.5837, allocations: 11.12 MB / 0.5346 GB, free: 3.156 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.718e-05/0.5838, allocations: 77.39 kB / 0.5347 GB, free: 3.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2332/0.817, allocations: 3.144 MB / 0.5378 GB, free: 125.7 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0004989/0.8175, allocations: 66.27 kB / 0.5378 GB, free: 125.6 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.002572/0.8201, allocations: 2.571 MB / 0.5404 GB, free: 125.1 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.001011/0.8211, allocations: 0.8648 MB / 0.5412 GB, free: 124.5 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001133/0.8223, allocations: 0.5641 MB / 0.5418 GB, free: 124.2 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.307e-05/0.8223, allocations: 307.6 kB / 0.542 GB, free: 123.9 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002393/0.8247, allocations: 1.337 MB / 0.5433 GB, free: 123.4 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002209/0.8269, allocations: 2.336 MB / 0.5456 GB, free: 121.7 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004192/0.8311, allocations: 3.921 MB / 0.5495 GB, free: 119.2 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.51e-05/0.8312, allocations: 11.88 kB / 0.5495 GB, free: 119.2 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006937/0.8381, allocations: 4.722 MB / 0.5541 GB, free: 117.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.481e-05/0.8382, allocations: 19.62 kB / 0.5541 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.294e-05/0.8382, allocations: 30.94 kB / 0.5541 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001058/0.8393, allocations: 0.5274 MB / 0.5546 GB, free: 116.9 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002396/0.8417, allocations: 0.742 MB / 0.5554 GB, free: 116.8 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006615/0.8483, allocations: 10.28 MB / 0.5654 GB, free: 108.2 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002794/0.8511, allocations: 182.8 kB / 0.5656 GB, free: 108.1 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003123/0.8515, allocations: 143.3 kB / 0.5657 GB, free: 108.1 MB / 462.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.002798/0.8543, allocations: 1.577 MB / 0.5673 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0006686/0.8549, allocations: 357.7 kB / 0.5676 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005801/0.8607, allocations: 4.065 MB / 0.5716 GB, free: 103.9 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.682e-05/0.8608, allocations: 24 kB / 0.5716 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.301e-05/0.8608, allocations: 8 kB / 0.5716 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.285e-05/0.8608, allocations: 16.08 kB / 0.5716 GB, free: 103.8 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01182/0.8726, allocations: 8.962 MB / 0.5804 GB, free: 94.72 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.698e-06/0.8727, allocations: 8 kB / 0.5804 GB, free: 94.71 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001549/0.8742, allocations: 412 kB / 0.5808 GB, free: 94.31 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001621/0.8759, allocations: 0.7343 MB / 0.5815 GB, free: 93.55 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001543/0.876, allocations: 67.91 kB / 0.5816 GB, free: 93.49 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01085/0.8869, allocations: 16.75 MB / 0.5979 GB, free: 75.66 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.34e-06/0.8869, allocations: 11.94 kB / 0.5979 GB, free: 75.65 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007986/0.8949, allocations: 5.863 MB / 0.6037 GB, free: 69.63 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001941/0.8969, allocations: 0.7134 MB / 0.6043 GB, free: 68.89 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0008791/0.8978, allocations: 59.98 kB / 0.6044 GB, free: 68.84 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001801/0.8996, allocations: 142.7 kB / 0.6045 GB, free: 68.7 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004711/0.9001, allocations: 181.6 kB / 0.6047 GB, free: 68.52 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001385/0.9002, allocations: 71.98 kB / 0.6048 GB, free: 68.45 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002827/0.9031, allocations: 2.123 MB / 0.6069 GB, free: 66.34 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.9031, allocations: 0 / 0.6069 GB, free: 66.34 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.004033/0.9071, allocations: 0.9943 MB / 0.6078 GB, free: 65.35 MB / 462.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.00762/0.9148, allocations: 6.572 MB / 0.6142 GB, free: 58.62 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005308/0.9201, allocations: 4.143 MB / 0.6183 GB, free: 54.38 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.135e-06/0.9201, allocations: 12.06 kB / 0.6183 GB, free: 54.36 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003311/0.9234, allocations: 2.75 MB / 0.621 GB, free: 51.52 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00432/0.9278, allocations: 0.9718 MB / 0.6219 GB, free: 50.57 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04504/0.9728, allocations: 35.6 MB / 0.6567 GB, free: 13.59 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002694/0.9756, allocations: 3.419 MB / 0.66 GB, free: 10.14 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002356/0.9779, allocations: 0.8073 MB / 0.6608 GB, free: 9.328 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002141/0.9801, allocations: 2.108 MB / 0.6629 GB, free: 7.219 MB / 462.1 MB Notification: Performance of SimCode: time 1.072e-06/0.9801, allocations: 0 / 0.6629 GB, free: 7.219 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4136/1.394, allocations: 88.2 MB / 0.749 GB, free: 172.8 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.31/18.7, allocations: 2.438 kB / 0.749 GB, free: 172.8 MB / 0.5137 GB (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.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_4_0_0_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches