Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001677/0.001677, allocations: 123 kB / 17.79 MB, free: 5.266 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001812/0.001812, allocations: 189.2 kB / 20.73 MB, free: 2.328 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.492/1.492, allocations: 225.6 MB / 249.1 MB, free: 3.582 MB / 190.1 MB " [Timeout remaining time 178] 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.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001448/0.001448, allocations: 55.91 kB / 365.7 MB, free: 0.8242 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09503/0.09648, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01221/0.1087, allocations: 10.36 MB / 428.1 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006695/0.1154, allocations: 3.439 MB / 431.6 MB, free: 14.75 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001404/0.1168, allocations: 71.5 kB / 431.7 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001969/0.1188, allocations: 0.8271 MB / 432.5 MB, free: 13.84 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002461/0.1212, allocations: 0.8815 MB / 433.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009321/0.1221, allocations: 423.4 kB / 433.8 MB, free: 12.54 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.003391/0.1255, allocations: 2.757 MB / 436.5 MB, free: 9.773 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002243/0.1278, allocations: 1.715 MB / 438.3 MB, free: 7.988 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001849/0.1296, allocations: 1.289 MB / 439.5 MB, free: 6.695 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002376/0.132, allocations: 1.615 MB / 441.2 MB, free: 5.074 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005019/0.1325, allocations: 336 kB / 441.5 MB, free: 4.746 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008569/0.1334, allocations: 439.8 kB / 441.9 MB, free: 4.316 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009756/0.1343, allocations: 0.9466 MB / 442.9 MB, free: 3.367 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001684/0.136, allocations: 1.501 MB / 444.4 MB, free: 1.859 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.1929/0.3289, allocations: 4.4 MB / 448.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.266e-06/0.3289, allocations: 0.5625 kB / 448.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.803e-06/0.3289, allocations: 0 / 448.8 MB, free: 15.3 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001274/0.329, allocations: 0.9062 kB / 448.8 MB, free: 15.3 MB / 366.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006391/0.3354, allocations: 3.129 MB / 451.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.326e-05/0.3355, allocations: 9.844 kB / 451.9 MB, free: 13.97 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003714/0.3358, allocations: 328.3 kB / 452.2 MB, free: 13.92 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007653/0.3366, allocations: 326.7 kB / 452.5 MB, free: 13.77 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002559/0.3392, allocations: 1.626 MB / 454.2 MB, free: 13.29 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001453/0.3393, allocations: 172.1 kB / 454.3 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003411/0.3396, allocations: 222.7 kB / 454.6 MB, free: 13.28 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00521/0.3448, allocations: 2.919 MB / 457.5 MB, free: 13.06 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.014e-05/0.3449, allocations: 8.062 kB / 457.5 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002174/0.3451, allocations: 93.78 kB / 457.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001417/0.3453, allocations: 114.6 kB / 457.7 MB, free: 13.05 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004096/0.3494, allocations: 2.431 MB / 460.1 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01181/0.3612, allocations: 9.033 MB / 469.1 MB, free: 8.566 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002018/0.3632, allocations: 1.623 MB / 470.8 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001536/0.3647, allocations: 0.9333 MB / 471.7 MB, free: 7.141 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002348/0.365, allocations: 207 kB / 471.9 MB, free: 6.934 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.309e-05/0.365, allocations: 52.72 kB / 472 MB, free: 6.887 MB / 366.1 MB Notification: Performance of pre-optimization done (n=105): time 2.675e-06/0.365, allocations: 0 / 472 MB, free: 6.887 MB / 366.1 MB Notification: Performance of matching and sorting (n=122): time 0.01321/0.3782, allocations: 6.589 MB / 478.5 MB, free: 3.094 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.589e-05/0.3782, allocations: 63.62 kB / 478.6 MB, free: 3.031 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002024/0.3803, allocations: 1.567 MB / 480.2 MB, free: 2.195 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 8.133e-05/0.3803, allocations: 44.83 kB / 480.2 MB, free: 2.148 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005308/0.3809, allocations: 1.135 MB / 481.4 MB, free: 1.148 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002251/0.3811, allocations: 446.8 kB / 481.8 MB, free: 0.7695 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003712/0.3815, allocations: 275.5 kB / 482.1 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 4.004e-05/0.3815, allocations: 301.1 kB / 482.4 MB, free: 320 kB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00101/0.3825, allocations: 0.7164 MB / 483.1 MB, free: 15.96 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00153/0.3841, allocations: 1.137 MB / 484.2 MB, free: 15.07 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002734/0.3868, allocations: 1.967 MB / 486.2 MB, free: 13.78 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.108e-05/0.3868, allocations: 6.875 kB / 486.2 MB, free: 13.78 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004049/0.3908, allocations: 2.519 MB / 488.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.777e-05/0.3909, allocations: 20.91 kB / 488.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.879e-05/0.3909, allocations: 13.83 kB / 488.7 MB, free: 12.5 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001003/0.3919, allocations: 414.1 kB / 489.1 MB, free: 12.18 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001262/0.3932, allocations: 355.7 kB / 489.5 MB, free: 11.86 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007599/0.4008, allocations: 7.133 MB / 496.6 MB, free: 4.348 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00153/0.4023, allocations: 108.4 kB / 496.7 MB, free: 4.242 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001203/0.4024, allocations: 67.47 kB / 496.8 MB, free: 4.18 MB / 382.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 1 * Torn equation systems: 3 * 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): 3 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.001331/0.4037, allocations: 0.7135 MB / 497.5 MB, free: 3.477 MB / 382.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003426/0.4041, allocations: 178.9 kB / 497.7 MB, free: 3.301 MB / 382.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004067/0.4081, allocations: 2.189 MB / 499.9 MB, free: 1.078 MB / 382.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.576e-05/0.4082, allocations: 16 kB / 499.9 MB, free: 1.062 MB / 382.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.135e-05/0.4082, allocations: 4 kB / 499.9 MB, free: 1.059 MB / 382.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.826e-05/0.4082, allocations: 13.88 kB / 499.9 MB, free: 1.047 MB / 382.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008292/0.4165, allocations: 4.76 MB / 0.4928 GB, free: 12.22 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.087e-06/0.4165, allocations: 4 kB / 0.4928 GB, free: 12.21 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001031/0.4175, allocations: 225.8 kB / 0.4931 GB, free: 12.01 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001199/0.4187, allocations: 461.2 kB / 0.4935 GB, free: 11.55 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.383e-05/0.4188, allocations: 35.97 kB / 0.4935 GB, free: 11.52 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008903/0.4277, allocations: 8.685 MB / 0.502 GB, free: 2.32 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.061e-06/0.4277, allocations: 7.281 kB / 0.502 GB, free: 2.316 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005367/0.4331, allocations: 3.215 MB / 0.5052 GB, free: 15.02 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009358/0.434, allocations: 407.8 kB / 0.5055 GB, free: 14.6 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002155/0.4342, allocations: 33.73 kB / 0.5056 GB, free: 14.57 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009192/0.4352, allocations: 83.91 kB / 0.5057 GB, free: 14.49 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002657/0.4354, allocations: 104 kB / 0.5058 GB, free: 14.39 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.019e-05/0.4355, allocations: 39.94 kB / 0.5058 GB, free: 14.35 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.001681/0.4372, allocations: 1.066 MB / 0.5068 GB, free: 13.29 MB / 414.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4372, allocations: 0 / 0.5068 GB, free: 13.29 MB / 414.1 MB Notification: Performance of remove unused functions: time 0.001789/0.439, allocations: 495.9 kB / 0.5073 GB, free: 12.8 MB / 414.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],vfController.x,loadInertia.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 (107): * Single equations (assignments): 103 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 4 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 4 systems {(3,12,100.0%), (1,6,100.0%), (1,1,100.0%), (2,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.005718/0.4447, allocations: 3.852 MB / 0.5111 GB, free: 8.891 MB / 414.1 MB Notification: Performance of simCode: created initialization part: time 0.003906/0.4486, allocations: 2.228 MB / 0.5132 GB, free: 6.652 MB / 414.1 MB Notification: Performance of simCode: created event and clocks part: time 4.519e-06/0.4486, allocations: 0 / 0.5132 GB, free: 6.652 MB / 414.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00249/0.4511, allocations: 1.428 MB / 0.5146 GB, free: 5.203 MB / 414.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002254/0.4534, allocations: 475.3 kB / 0.5151 GB, free: 4.758 MB / 414.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02804/0.4814, allocations: 17.9 MB / 0.5326 GB, free: 2.266 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001726/0.4831, allocations: 1.872 MB / 0.5344 GB, free: 368 kB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.001148/0.4843, allocations: 394.9 kB / 0.5348 GB, free: 15.97 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001177/0.4854, allocations: 0.8703 MB / 0.5356 GB, free: 15.1 MB / 446.1 MB Notification: Performance of SimCode: time 8.61e-07/0.4854, allocations: 0 / 0.5356 GB, free: 15.1 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09655/0.582, allocations: 45.48 MB / 0.58 GB, free: 2.117 MB / 478.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.04/13.62, allocations: 11.98 kB / 0.5801 GB, free: 2.105 MB / 478.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "Error: Could not read variable loadInertia.w in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[1] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable vfController.x in file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable vfController.x from file Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.754949409049004]