Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_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_trunk_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 trunk/package.mo): time 0.001264/0.001264, allocations: 117.2 kB / 17.78 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001366/0.001366, allocations: 204.6 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.384/1.384, allocations: 227.4 MB / 246.9 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001363/0.001363, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2976/0.299, allocations: 50.54 MB / 408.8 MB, free: 1.523 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter): time 0.02242/0.3215, allocations: 22.38 MB / 431.2 MB, free: 11.05 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.01444/0.336, allocations: 6.666 MB / 437.8 MB, free: 4.363 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004811/0.3408, allocations: 135.5 kB / 438 MB, free: 4.23 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004989/0.3458, allocations: 1.568 MB / 439.5 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.007323/0.3532, allocations: 2.131 MB / 441.7 MB, free: 0.5117 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.004066/0.3573, allocations: 1.336 MB / 443 MB, free: 15.18 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.009315/0.3666, allocations: 6.575 MB / 449.6 MB, free: 8.57 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.008806/0.3755, allocations: 5.59 MB / 455.2 MB, free: 2.898 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.005138/0.3807, allocations: 3.026 MB / 458.2 MB, free: 15.86 MB / 382.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.005739/0.3865, allocations: 3.678 MB / 461.9 MB, free: 12.17 MB / 382.1 MB Notification: Performance of NFPackage.collectConstants: time 0.002305/0.3888, allocations: 0.8164 MB / 462.7 MB, free: 11.36 MB / 382.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.003381/0.3922, allocations: 1.125 MB / 463.8 MB, free: 10.23 MB / 382.1 MB Notification: Performance of NFScalarize.scalarize: time 0.002258/0.3945, allocations: 2.034 MB / 465.8 MB, free: 8.191 MB / 382.1 MB Notification: Performance of NFVerifyModel.verify: time 0.005535/0.4, allocations: 3.547 MB / 469.4 MB, free: 4.629 MB / 382.1 MB Notification: Performance of NFConvertDAE.convert: time 0.01368/0.4137, allocations: 10.87 MB / 480.2 MB, free: 9.723 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.041e-05/0.4138, allocations: 0 / 480.2 MB, free: 9.723 MB / 398.1 MB Notification: Performance of FrontEnd: time 2.334e-06/0.4138, allocations: 3.938 kB / 480.3 MB, free: 9.719 MB / 398.1 MB Notification: Performance of Transformations before backend: time 0.0003406/0.4141, allocations: 0 / 480.3 MB, free: 9.719 MB / 398.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.01969/0.4338, allocations: 7.114 MB / 487.4 MB, free: 2.516 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.044e-05/0.4339, allocations: 8.031 kB / 487.4 MB, free: 2.508 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001703/0.4356, allocations: 0.7368 MB / 488.1 MB, free: 1.762 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.005317/0.4409, allocations: 1.102 MB / 489.2 MB, free: 0.6562 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00865/0.4496, allocations: 3.791 MB / 493 MB, free: 12.79 MB / 414.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003704/0.45, allocations: 406.9 kB / 493.4 MB, free: 12.39 MB / 414.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001651/0.4517, allocations: 0.5273 MB / 493.9 MB, free: 11.87 MB / 414.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.01625/0.468, allocations: 7.059 MB / 0.4892 GB, free: 4.734 MB / 414.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001687/0.4682, allocations: 7.953 kB / 0.4893 GB, free: 4.727 MB / 414.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0007049/0.4689, allocations: 216 kB / 0.4895 GB, free: 4.516 MB / 414.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0002723/0.4692, allocations: 266.6 kB / 0.4897 GB, free: 4.254 MB / 414.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.01328/0.4825, allocations: 5.948 MB / 0.4955 GB, free: 14.3 MB / 430.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.03915/0.5217, allocations: 22.4 MB / 0.5174 GB, free: 7.301 MB / 446.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.008891/0.5306, allocations: 8.547 MB / 0.5257 GB, free: 13.81 MB / 462.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.004051/0.5347, allocations: 2.273 MB / 0.528 GB, free: 11.53 MB / 462.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.01318/0.5479, allocations: 6.452 MB / 0.5343 GB, free: 4.879 MB / 462.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.694e-05/0.548, allocations: 56.56 kB / 0.5343 GB, free: 4.812 MB / 462.1 MB Notification: Performance of pre-optimization done (n=220): time 4.238e-06/0.548, allocations: 3.938 kB / 0.5343 GB, free: 4.809 MB / 462.1 MB Notification: Performance of matching and sorting (n=240): time 0.2709/0.8189, allocations: 11.17 MB / 0.5452 GB, free: 118.7 MB / 462.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.222e-05/0.819, allocations: 73.19 kB / 0.5453 GB, free: 118.6 MB / 462.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.004256/0.8232, allocations: 3.18 MB / 0.5484 GB, free: 117.5 MB / 462.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001944/0.8234, allocations: 65.55 kB / 0.5485 GB, free: 117.4 MB / 462.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00129/0.8247, allocations: 2.582 MB / 0.551 GB, free: 115.7 MB / 462.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000546/0.8253, allocations: 0.8625 MB / 0.5518 GB, free: 115.2 MB / 462.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0006784/0.826, allocations: 0.5638 MB / 0.5524 GB, free: 114.9 MB / 462.1 MB Notification: Performance of setup shared object (initialization): time 4.608e-05/0.826, allocations: 302.2 kB / 0.5527 GB, free: 114.6 MB / 462.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001794/0.8278, allocations: 1.333 MB / 0.554 GB, free: 114.1 MB / 462.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002097/0.8299, allocations: 2.343 MB / 0.5563 GB, free: 112.4 MB / 462.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004067/0.834, allocations: 3.912 MB / 0.5601 GB, free: 109.8 MB / 462.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.655e-05/0.834, allocations: 11.25 kB / 0.5601 GB, free: 109.8 MB / 462.1 MB Notification: Performance of matching and sorting (n=406) (initialization): time 0.00681/0.8409, allocations: 4.743 MB / 0.5647 GB, free: 107.1 MB / 462.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.655e-05/0.8409, allocations: 24.03 kB / 0.5647 GB, free: 107.1 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.393e-05/0.841, allocations: 32 kB / 0.5648 GB, free: 107 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001084/0.8421, allocations: 0.5424 MB / 0.5653 GB, free: 106.6 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00238/0.8444, allocations: 0.7426 MB / 0.566 GB, free: 106 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.006994/0.8515, allocations: 10.46 MB / 0.5762 GB, free: 95.13 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.003248/0.8547, allocations: 192.3 kB / 0.5764 GB, free: 94.95 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003037/0.855, allocations: 144 kB / 0.5766 GB, free: 94.8 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 (377): * Single equations (assignments): 370 * 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,6,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.002827/0.8579, allocations: 1.573 MB / 0.5781 GB, free: 93.23 MB / 462.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0008029/0.8587, allocations: 365.7 kB / 0.5784 GB, free: 92.87 MB / 462.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.005856/0.8646, allocations: 4.071 MB / 0.5824 GB, free: 88.7 MB / 462.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.706e-05/0.8646, allocations: 24.66 kB / 0.5824 GB, free: 88.67 MB / 462.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.335e-05/0.8646, allocations: 11.06 kB / 0.5825 GB, free: 88.66 MB / 462.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.035e-05/0.8646, allocations: 11.95 kB / 0.5825 GB, free: 88.65 MB / 462.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01282/0.8775, allocations: 9.001 MB / 0.5913 GB, free: 79.52 MB / 462.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.006e-05/0.8775, allocations: 4 kB / 0.5913 GB, free: 79.51 MB / 462.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001586/0.8791, allocations: 406.8 kB / 0.5917 GB, free: 79.12 MB / 462.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001614/0.8807, allocations: 0.7559 MB / 0.5924 GB, free: 78.34 MB / 462.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001368/0.8809, allocations: 70.16 kB / 0.5925 GB, free: 78.27 MB / 462.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01127/0.8922, allocations: 16.9 MB / 0.609 GB, free: 60.29 MB / 462.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.658e-06/0.8922, allocations: 7.844 kB / 0.609 GB, free: 60.28 MB / 462.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.008338/0.9005, allocations: 5.891 MB / 0.6147 GB, free: 54.23 MB / 462.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.002234/0.9028, allocations: 0.7142 MB / 0.6154 GB, free: 53.5 MB / 462.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0007984/0.9036, allocations: 59.98 kB / 0.6155 GB, free: 53.44 MB / 462.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001738/0.9054, allocations: 139.9 kB / 0.6156 GB, free: 53.3 MB / 462.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0004362/0.9058, allocations: 181.6 kB / 0.6158 GB, free: 53.13 MB / 462.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001268/0.906, allocations: 67.98 kB / 0.6158 GB, free: 53.06 MB / 462.1 MB Notification: Performance of sorting global known variables: time 0.002996/0.909, allocations: 2.139 MB / 0.6179 GB, free: 50.93 MB / 462.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.909, allocations: 3.938 kB / 0.6179 GB, free: 50.93 MB / 462.1 MB Notification: Performance of remove unused functions: time 0.003542/0.9125, allocations: 1 MB / 0.6189 GB, free: 49.93 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 (198): * Single equations (assignments): 190 * 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,6,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.007709/0.9203, allocations: 6.604 MB / 0.6254 GB, free: 43.16 MB / 462.1 MB Notification: Performance of simCode: created initialization part: time 0.005594/0.9259, allocations: 4.157 MB / 0.6294 GB, free: 38.91 MB / 462.1 MB Notification: Performance of simCode: created event and clocks part: time 8.686e-06/0.9259, allocations: 1.938 kB / 0.6294 GB, free: 38.91 MB / 462.1 MB Notification: Performance of simCode: created simulation system equations: time 0.003511/0.9294, allocations: 2.776 MB / 0.6321 GB, free: 36.03 MB / 462.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004457/0.9339, allocations: 0.9751 MB / 0.6331 GB, free: 35.08 MB / 462.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04977/0.9837, allocations: 35.7 MB / 0.668 GB, free: 13.96 MB / 478.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.003657/0.9874, allocations: 3.423 MB / 0.6713 GB, free: 10.5 MB / 478.1 MB Notification: Performance of simCode: alias equations: time 0.002901/0.9903, allocations: 0.8074 MB / 0.6721 GB, free: 9.691 MB / 478.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.002924/0.9933, allocations: 2.112 MB / 0.6741 GB, free: 7.578 MB / 478.1 MB Notification: Performance of SimCode: time 1.703e-06/0.9933, allocations: 3.938 kB / 0.6741 GB, free: 7.574 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.4371/1.43, allocations: 88.55 MB / 0.7606 GB, free: 181.5 MB / 0.5294 GB Notification: Performance of buildModelFMU: Generate platform static: time 17.16/18.59, allocations: 5.062 kB / 0.7606 GB, free: 181.5 MB / 0.5294 GB (rm -f Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FundamentalWave_Examples_BasicMachines_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches