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.001804/0.001804, allocations: 107.5 kB / 20.44 MB, free: 1.188 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.002131/0.002131, allocations: 194.8 kB / 23.71 MB, free: 4.406 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.531/1.531, allocations: 225.7 MB / 252.5 MB, free: 12.82 MB / 206.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.001719/0.001719, allocations: 47.91 kB / 370.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2363/0.238, allocations: 52.19 MB / 422.6 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0119/0.2499, allocations: 9.103 MB / 431.7 MB, free: 5.266 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006539/0.2565, allocations: 3.24 MB / 434.9 MB, free: 2.016 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001512/0.258, allocations: 75.5 kB / 435 MB, free: 1.941 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002262/0.2602, allocations: 0.7491 MB / 435.8 MB, free: 1.188 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003214/0.2634, allocations: 0.8854 MB / 436.6 MB, free: 304 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001373/0.2648, allocations: 423.4 kB / 437.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003841/0.2687, allocations: 2.758 MB / 439.8 MB, free: 13.12 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002606/0.2713, allocations: 1.301 MB / 441.1 MB, free: 11.75 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002356/0.2736, allocations: 1.297 MB / 442.4 MB, free: 10.45 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00347/0.2771, allocations: 1.506 MB / 443.9 MB, free: 8.934 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001186/0.2783, allocations: 336 kB / 444.2 MB, free: 8.605 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001788/0.2801, allocations: 439.8 kB / 444.7 MB, free: 8.176 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001767/0.2818, allocations: 0.9504 MB / 445.6 MB, free: 7.223 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002687/0.2845, allocations: 1.214 MB / 446.8 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006703/0.2912, allocations: 4.422 MB / 451.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.34e-06/0.2912, allocations: 0 / 451.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.873e-06/0.2912, allocations: 0 / 451.3 MB, free: 1.566 MB / 350.1 MB Notification: Performance of Transformations before backend: time 0.0001649/0.2914, allocations: 0 / 451.3 MB, free: 1.566 MB / 350.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.008535/0.2999, allocations: 3.061 MB / 454.3 MB, free: 14.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5e-05/0.3, allocations: 8.031 kB / 454.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0009704/0.3009, allocations: 321 kB / 454.6 MB, free: 14.12 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001324/0.3023, allocations: 327 kB / 455 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004763/0.307, allocations: 1.558 MB / 456.5 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002212/0.3073, allocations: 168.4 kB / 456.7 MB, free: 12.04 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0006952/0.308, allocations: 223.9 kB / 456.9 MB, free: 11.82 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007543/0.3155, allocations: 3.017 MB / 459.9 MB, free: 8.691 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.508e-05/0.3156, allocations: 11.94 kB / 459.9 MB, free: 8.68 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004321/0.316, allocations: 87.98 kB / 460 MB, free: 8.594 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001495/0.3162, allocations: 116.3 kB / 460.1 MB, free: 8.477 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005586/0.3218, allocations: 2.422 MB / 462.6 MB, free: 6.039 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01747/0.3392, allocations: 8.163 MB / 470.7 MB, free: 13.6 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002312/0.3415, allocations: 1.186 MB / 471.9 MB, free: 12.41 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001842/0.3434, allocations: 0.917 MB / 472.8 MB, free: 11.49 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002339/0.3436, allocations: 60.89 kB / 472.9 MB, free: 11.43 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.818e-05/0.3437, allocations: 51.5 kB / 472.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.086e-06/0.3437, allocations: 0 / 472.9 MB, free: 11.37 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01457/0.3582, allocations: 6.055 MB / 479 MB, free: 5.289 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.464e-05/0.3583, allocations: 68.41 kB / 479.1 MB, free: 5.211 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002773/0.3611, allocations: 1.588 MB / 480.6 MB, free: 3.613 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001922/0.3612, allocations: 45.7 kB / 480.7 MB, free: 3.562 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001003/0.3623, allocations: 1.138 MB / 481.8 MB, free: 2.41 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005261/0.3628, allocations: 448.2 kB / 482.3 MB, free: 1.969 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005229/0.3633, allocations: 275.5 kB / 482.5 MB, free: 1.691 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001324/0.3634, allocations: 301.1 kB / 482.8 MB, free: 1.395 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001386/0.3648, allocations: 0.7066 MB / 483.5 MB, free: 0.6875 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001714/0.3665, allocations: 1.146 MB / 484.7 MB, free: 15.36 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00335/0.3699, allocations: 1.971 MB / 486.6 MB, free: 13.21 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.587e-05/0.3699, allocations: 4 kB / 486.7 MB, free: 13.2 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004944/0.3748, allocations: 2.448 MB / 489.1 MB, free: 10.73 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.743e-05/0.3749, allocations: 12 kB / 489.1 MB, free: 10.72 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.914e-05/0.3749, allocations: 16 kB / 489.1 MB, free: 10.71 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001069/0.376, allocations: 415.1 kB / 489.5 MB, free: 10.29 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001459/0.3774, allocations: 355.4 kB / 489.9 MB, free: 9.941 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008217/0.3857, allocations: 6.771 MB / 496.7 MB, free: 2.836 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001613/0.3873, allocations: 111.8 kB / 496.8 MB, free: 2.727 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002693/0.3875, allocations: 63.94 kB / 496.8 MB, free: 2.664 MB / 398.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.001757/0.3893, allocations: 0.7207 MB / 497.5 MB, free: 1.934 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000624/0.3899, allocations: 174.9 kB / 497.7 MB, free: 1.762 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004746/0.3947, allocations: 2.111 MB / 499.8 MB, free: 15.62 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.523e-05/0.3947, allocations: 12 kB / 499.8 MB, free: 15.61 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.568e-05/0.3947, allocations: 15.81 kB / 499.9 MB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.503e-05/0.3947, allocations: 3.984 kB / 499.9 MB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01002/0.4047, allocations: 4.407 MB / 0.4924 GB, free: 11.06 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.119e-05/0.4047, allocations: 8.062 kB / 0.4925 GB, free: 11.05 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009854/0.4057, allocations: 215.7 kB / 0.4927 GB, free: 10.84 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001225/0.4069, allocations: 451 kB / 0.4931 GB, free: 10.39 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001165/0.4071, allocations: 35.98 kB / 0.4931 GB, free: 10.35 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009769/0.4168, allocations: 8.233 MB / 0.5012 GB, free: 1.66 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.815e-06/0.4168, allocations: 4 kB / 0.5012 GB, free: 1.656 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00577/0.4226, allocations: 3.14 MB / 0.5042 GB, free: 14.44 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001147/0.4238, allocations: 330.7 kB / 0.5045 GB, free: 14.12 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003913/0.4241, allocations: 28 kB / 0.5046 GB, free: 14.09 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001079/0.4252, allocations: 83.91 kB / 0.5047 GB, free: 14.01 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000262/0.4255, allocations: 108.7 kB / 0.5048 GB, free: 13.9 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.448e-05/0.4256, allocations: 43.92 kB / 0.5048 GB, free: 13.86 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002017/0.4276, allocations: 1.063 MB / 0.5058 GB, free: 12.8 MB / 430.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4276, allocations: 0 / 0.5058 GB, free: 12.8 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002021/0.4296, allocations: 492.1 kB / 0.5063 GB, free: 12.32 MB / 430.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.006357/0.436, allocations: 3.789 MB / 0.51 GB, free: 8.445 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004303/0.4403, allocations: 2.151 MB / 0.5121 GB, free: 6.246 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.136e-05/0.4403, allocations: 4 kB / 0.5121 GB, free: 6.242 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002696/0.443, allocations: 1.423 MB / 0.5135 GB, free: 4.773 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002657/0.4456, allocations: 480.5 kB / 0.514 GB, free: 4.312 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03417/0.4798, allocations: 17.76 MB / 0.5313 GB, free: 1.836 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002278/0.4821, allocations: 1.298 MB / 0.5326 GB, free: 0.5 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.00143/0.4835, allocations: 390.9 kB / 0.5329 GB, free: 116 kB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001503/0.485, allocations: 0.8703 MB / 0.5338 GB, free: 15.24 MB / 462.1 MB Notification: Performance of SimCode: time 1.203e-06/0.485, allocations: 7.938 kB / 0.5338 GB, free: 15.23 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3151/0.8002, allocations: 48.43 MB / 0.5811 GB, free: 102.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.3/14.1, allocations: 4.062 kB / 0.5811 GB, free: 102.3 MB / 462.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: 17.320801727939397]