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.001198/0.001199, allocations: 109.2 kB / 17.06 MB, free: 6.016 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.00117/0.00117, allocations: 188 kB / 18 MB, free: 5.102 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.345/1.345, allocations: 222.9 MB / 241.7 MB, free: 15.14 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009699/0.00097, allocations: 47.92 kB / 350.8 MB, free: 3.754 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2719/0.2729, allocations: 49.44 MB / 400.3 MB, free: 8.641 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02124/0.2942, allocations: 21.73 MB / 422 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.01207/0.3063, allocations: 6.394 MB / 428.4 MB, free: 12.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.003815/0.3101, allocations: 139.4 kB / 428.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004456/0.3146, allocations: 1.553 MB / 430.1 MB, free: 11.03 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007165/0.3218, allocations: 2.15 MB / 432.2 MB, free: 8.867 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.003365/0.3252, allocations: 1.29 MB / 433.5 MB, free: 7.578 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.008428/0.3337, allocations: 6.526 MB / 440 MB, free: 1.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.006379/0.3401, allocations: 5.586 MB / 445.6 MB, free: 11.35 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004946/0.345, allocations: 3.006 MB / 448.6 MB, free: 8.336 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.006025/0.3511, allocations: 3.569 MB / 452.2 MB, free: 4.754 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001633/0.3527, allocations: 0.8164 MB / 453 MB, free: 3.938 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.002755/0.3555, allocations: 1.101 MB / 454.1 MB, free: 2.836 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001781/0.3573, allocations: 2.018 MB / 456.1 MB, free: 0.8125 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005357/0.3627, allocations: 3.54 MB / 459.7 MB, free: 13.25 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01417/0.3769, allocations: 10.83 MB / 470.5 MB, free: 2.387 MB / 382.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.151e-06/0.3769, allocations: 0 / 470.5 MB, free: 2.387 MB / 382.1 MB Notification: Performance of FrontEnd: time 4.719e-06/0.3769, allocations: 4 kB / 470.5 MB, free: 2.383 MB / 382.1 MB Notification: Performance of Transformations before backend: time 0.000329/0.3773, allocations: 0 / 470.5 MB, free: 2.383 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.01916/0.3964, allocations: 7.083 MB / 477.6 MB, free: 11.21 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.3965, allocations: 15.89 kB / 477.6 MB, free: 11.19 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.002172/0.3987, allocations: 0.7329 MB / 478.3 MB, free: 10.45 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005638/0.4043, allocations: 1.09 MB / 479.4 MB, free: 9.355 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.009056/0.4134, allocations: 3.771 MB / 483.2 MB, free: 5.512 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000439/0.4139, allocations: 410.9 kB / 483.6 MB, free: 5.109 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001743/0.4156, allocations: 0.5233 MB / 484.1 MB, free: 4.586 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01863/0.4343, allocations: 7.056 MB / 491.2 MB, free: 13.46 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0002748/0.4346, allocations: 11.89 kB / 491.2 MB, free: 13.45 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.00133/0.4359, allocations: 228 kB / 491.4 MB, free: 13.22 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002817/0.4362, allocations: 262.6 kB / 491.7 MB, free: 12.96 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0133/0.4495, allocations: 5.944 MB / 497.6 MB, free: 7.012 MB / 414.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0461/0.4957, allocations: 22.22 MB / 0.5077 GB, free: 236 kB / 430.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.009271/0.505, allocations: 8.289 MB / 0.5158 GB, free: 7.047 MB / 446.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003735/0.5088, allocations: 2.159 MB / 0.5179 GB, free: 4.883 MB / 446.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01265/0.5215, allocations: 6.177 MB / 0.5239 GB, free: 14.57 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.545e-05/0.5215, allocations: 64.56 kB / 0.524 GB, free: 14.5 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 4.178e-06/0.5216, allocations: 0 / 0.524 GB, free: 14.5 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.02416/0.5457, allocations: 11.12 MB / 0.5348 GB, free: 3.16 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.52e-05/0.5458, allocations: 81.41 kB / 0.5349 GB, free: 3.07 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2422/0.788, allocations: 3.147 MB / 0.538 GB, free: 125.9 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0005489/0.7886, allocations: 66.08 kB / 0.538 GB, free: 125.9 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0026/0.7912, allocations: 2.569 MB / 0.5405 GB, free: 125.3 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0009742/0.7922, allocations: 0.8682 MB / 0.5414 GB, free: 124.7 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.001088/0.7933, allocations: 0.5649 MB / 0.5419 GB, free: 124.5 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 5.094e-05/0.7933, allocations: 301.6 kB / 0.5422 GB, free: 124.2 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002237/0.7956, allocations: 1.336 MB / 0.5435 GB, free: 123.7 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00221/0.7978, allocations: 2.337 MB / 0.5458 GB, free: 122 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004185/0.802, allocations: 3.927 MB / 0.5496 GB, free: 119.4 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.408e-05/0.802, allocations: 7.844 kB / 0.5496 GB, free: 119.4 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.006888/0.8089, allocations: 4.717 MB / 0.5543 GB, free: 117.3 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.317e-05/0.809, allocations: 23.53 kB / 0.5543 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.38e-05/0.809, allocations: 31.41 kB / 0.5543 GB, free: 117.3 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001052/0.8101, allocations: 0.5248 MB / 0.5548 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002419/0.8125, allocations: 0.746 MB / 0.5555 GB, free: 117.1 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006676/0.8192, allocations: 10.28 MB / 0.5656 GB, free: 108.4 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.002813/0.8221, allocations: 183.4 kB / 0.5658 GB, free: 108.3 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002631/0.8223, allocations: 140.9 kB / 0.5659 GB, free: 108.3 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.002454/0.8248, allocations: 1.576 MB / 0.5674 GB, free: 107.5 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007018/0.8255, allocations: 364.4 kB / 0.5678 GB, free: 107.3 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005875/0.8314, allocations: 4.059 MB / 0.5717 GB, free: 104.1 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.785e-05/0.8314, allocations: 27.94 kB / 0.5718 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.792e-05/0.8314, allocations: 11.94 kB / 0.5718 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.922e-05/0.8315, allocations: 11.95 kB / 0.5718 GB, free: 104 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01269/0.8442, allocations: 8.959 MB / 0.5805 GB, free: 94.92 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.011e-05/0.8442, allocations: 4 kB / 0.5805 GB, free: 94.92 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001575/0.8458, allocations: 416 kB / 0.5809 GB, free: 94.51 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001623/0.8474, allocations: 0.727 MB / 0.5817 GB, free: 93.77 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001533/0.8476, allocations: 67.97 kB / 0.5817 GB, free: 93.7 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0106/0.8582, allocations: 16.76 MB / 0.5981 GB, free: 75.87 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.02e-06/0.8583, allocations: 7.938 kB / 0.5981 GB, free: 75.86 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.007605/0.8659, allocations: 5.868 MB / 0.6038 GB, free: 69.83 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001852/0.8677, allocations: 0.7134 MB / 0.6045 GB, free: 69.1 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006853/0.8684, allocations: 51.98 kB / 0.6046 GB, free: 69.05 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0017/0.8702, allocations: 143.8 kB / 0.6047 GB, free: 68.91 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00038/0.8705, allocations: 184.6 kB / 0.6049 GB, free: 68.73 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001262/0.8707, allocations: 71.98 kB / 0.605 GB, free: 68.66 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002622/0.8733, allocations: 2.127 MB / 0.607 GB, free: 66.54 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.8733, allocations: 0 / 0.607 GB, free: 66.54 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003202/0.8765, allocations: 0.9982 MB / 0.608 GB, free: 65.55 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.007497/0.884, allocations: 6.576 MB / 0.6144 GB, free: 58.82 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005373/0.8894, allocations: 4.143 MB / 0.6185 GB, free: 54.57 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 6.833e-06/0.8895, allocations: 4.25 kB / 0.6185 GB, free: 54.57 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00327/0.8927, allocations: 2.758 MB / 0.6212 GB, free: 51.71 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00417/0.8969, allocations: 0.9596 MB / 0.6221 GB, free: 50.78 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04481/0.9417, allocations: 35.62 MB / 0.6569 GB, free: 13.79 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002599/0.9444, allocations: 3.411 MB / 0.6602 GB, free: 10.35 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.002251/0.9466, allocations: 0.8151 MB / 0.661 GB, free: 9.531 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002078/0.9487, allocations: 2.097 MB / 0.6631 GB, free: 7.434 MB / 462.1 MB Notification: Performance of SimCode: time 1.262e-06/0.9487, allocations: 0 / 0.6631 GB, free: 7.434 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3829/1.332, allocations: 88.19 MB / 0.7492 GB, free: 172.9 MB / 0.5137 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.6/18.93, allocations: 9.562 kB / 0.7492 GB, free: 172.9 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