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.00179/0.00179, allocations: 112.2 kB / 20.43 MB, free: 1.449 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.002239/0.002239, allocations: 188.4 kB / 23.72 MB, free: 4.684 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.451/1.451, allocations: 225.6 MB / 252.5 MB, free: 13.03 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.00157/0.00157, allocations: 51.92 kB / 370.5 MB, free: 9.828 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.238/0.2396, allocations: 52.19 MB / 422.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0126/0.2522, allocations: 10.41 MB / 433.1 MB, free: 4.258 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.006546/0.2587, allocations: 3.443 MB / 436.5 MB, free: 0.8047 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001557/0.2603, allocations: 75.5 kB / 436.6 MB, free: 0.7305 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002151/0.2624, allocations: 0.8226 MB / 437.4 MB, free: 15.91 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002941/0.2654, allocations: 0.8893 MB / 438.3 MB, free: 15.01 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001121/0.2665, allocations: 439.3 kB / 438.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003763/0.2702, allocations: 2.757 MB / 441.5 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002115/0.2724, allocations: 1.348 MB / 442.8 MB, free: 10.4 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002016/0.2744, allocations: 1.297 MB / 444.1 MB, free: 9.102 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002649/0.277, allocations: 1.619 MB / 445.7 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006986/0.2777, allocations: 332 kB / 446.1 MB, free: 7.152 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001096/0.2788, allocations: 443.8 kB / 446.5 MB, free: 6.719 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001065/0.2799, allocations: 0.9543 MB / 447.4 MB, free: 5.762 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001863/0.2817, allocations: 1.509 MB / 449 MB, free: 4.246 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.00517/0.2869, allocations: 4.394 MB / 453.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.708e-06/0.2869, allocations: 0 / 453.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.432e-06/0.2869, allocations: 0 / 453.3 MB, free: 15.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.92e-05/0.287, allocations: 0 / 453.3 MB, free: 15.84 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.006509/0.2935, allocations: 3.053 MB / 456.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.325e-05/0.2936, allocations: 8.031 kB / 456.4 MB, free: 12.73 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004536/0.294, allocations: 328.9 kB / 456.7 MB, free: 12.39 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007955/0.2948, allocations: 323 kB / 457 MB, free: 12.08 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003193/0.298, allocations: 1.554 MB / 458.6 MB, free: 10.48 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001538/0.2982, allocations: 168.4 kB / 458.8 MB, free: 10.32 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003718/0.2985, allocations: 227.9 kB / 459 MB, free: 10.09 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005176/0.3037, allocations: 2.913 MB / 461.9 MB, free: 7.094 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.752e-05/0.3038, allocations: 4 kB / 461.9 MB, free: 7.09 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002006/0.304, allocations: 91.98 kB / 462 MB, free: 7 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001296/0.3041, allocations: 120.3 kB / 462.1 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0046/0.3087, allocations: 2.434 MB / 464.5 MB, free: 4.43 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01545/0.3241, allocations: 8.872 MB / 473.4 MB, free: 11.28 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00222/0.3264, allocations: 1.181 MB / 474.6 MB, free: 10.09 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001741/0.3281, allocations: 0.9209 MB / 475.5 MB, free: 9.168 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002424/0.3283, allocations: 56.95 kB / 475.6 MB, free: 9.113 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.955e-05/0.3284, allocations: 43.56 kB / 475.6 MB, free: 9.059 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.966e-06/0.3284, allocations: 0 / 475.6 MB, free: 9.059 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01407/0.3425, allocations: 6.067 MB / 481.7 MB, free: 2.961 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.787e-05/0.3425, allocations: 64.41 kB / 481.7 MB, free: 2.887 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002458/0.345, allocations: 1.565 MB / 483.3 MB, free: 1.312 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001571/0.3451, allocations: 49.7 kB / 483.4 MB, free: 1.258 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009312/0.3461, allocations: 1.138 MB / 484.5 MB, free: 108 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004751/0.3465, allocations: 452.4 kB / 484.9 MB, free: 15.66 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004432/0.347, allocations: 267.5 kB / 485.2 MB, free: 15.39 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001308/0.3471, allocations: 309.1 kB / 485.5 MB, free: 15.08 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001284/0.3484, allocations: 0.7066 MB / 486.2 MB, free: 14.38 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001569/0.35, allocations: 1.146 MB / 487.4 MB, free: 13.05 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002964/0.3529, allocations: 1.967 MB / 489.3 MB, free: 10.9 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.146e-05/0.3529, allocations: 4 kB / 489.3 MB, free: 10.89 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004586/0.3575, allocations: 2.455 MB / 491.8 MB, free: 8.422 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.97e-05/0.3576, allocations: 12 kB / 491.8 MB, free: 8.41 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.089e-05/0.3576, allocations: 12 kB / 491.8 MB, free: 8.398 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001014/0.3586, allocations: 418.8 kB / 492.2 MB, free: 7.98 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00133/0.3599, allocations: 355.5 kB / 492.6 MB, free: 7.633 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007797/0.3677, allocations: 6.81 MB / 499.4 MB, free: 496 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001466/0.3692, allocations: 115.8 kB / 499.5 MB, free: 380 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001296/0.3693, allocations: 60 kB / 499.5 MB, free: 320 kB / 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.001354/0.3707, allocations: 0.7169 MB / 0.4885 GB, free: 15.59 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003653/0.371, allocations: 178.8 kB / 0.4887 GB, free: 15.41 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004008/0.375, allocations: 2.107 MB / 0.4908 GB, free: 13.27 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.231e-05/0.3751, allocations: 16.09 kB / 0.4908 GB, free: 13.25 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.189e-05/0.3751, allocations: 11.92 kB / 0.4908 GB, free: 13.24 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.432e-05/0.3751, allocations: 11.97 kB / 0.4908 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0085/0.3836, allocations: 4.648 MB / 0.4953 GB, free: 8.465 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.084e-05/0.3836, allocations: 4 kB / 0.4953 GB, free: 8.461 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009887/0.3846, allocations: 219.7 kB / 0.4956 GB, free: 8.246 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001197/0.3858, allocations: 455 kB / 0.496 GB, free: 7.793 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.814e-05/0.3859, allocations: 35.98 kB / 0.496 GB, free: 7.758 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009046/0.3949, allocations: 8.28 MB / 0.5041 GB, free: 15.02 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.791e-06/0.3949, allocations: 4.094 kB / 0.5041 GB, free: 15.01 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005513/0.4004, allocations: 3.155 MB / 0.5072 GB, free: 11.78 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001055/0.4015, allocations: 326.7 kB / 0.5075 GB, free: 11.46 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002902/0.4018, allocations: 32 kB / 0.5075 GB, free: 11.43 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009291/0.4027, allocations: 83.91 kB / 0.5076 GB, free: 11.35 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002584/0.403, allocations: 104.6 kB / 0.5077 GB, free: 11.25 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.415e-05/0.4031, allocations: 39.98 kB / 0.5078 GB, free: 11.21 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001794/0.4049, allocations: 1.074 MB / 0.5088 GB, free: 10.14 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4049, allocations: 0 / 0.5088 GB, free: 10.14 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001774/0.4066, allocations: 492.1 kB / 0.5093 GB, free: 9.656 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.006/0.4126, allocations: 3.777 MB / 0.513 GB, free: 5.789 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004099/0.4167, allocations: 2.155 MB / 0.5151 GB, free: 3.59 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.877e-06/0.4167, allocations: 0 / 0.5151 GB, free: 3.59 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002546/0.4193, allocations: 1.419 MB / 0.5164 GB, free: 2.121 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002476/0.4218, allocations: 479.9 kB / 0.5169 GB, free: 1.66 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03113/0.4529, allocations: 17.77 MB / 0.5343 GB, free: 15.18 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001873/0.4548, allocations: 1.867 MB / 0.5361 GB, free: 13.29 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001271/0.456, allocations: 390.9 kB / 0.5365 GB, free: 12.9 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00123/0.4573, allocations: 0.8742 MB / 0.5373 GB, free: 12.02 MB / 462.1 MB Notification: Performance of SimCode: time 8.42e-07/0.4573, allocations: 4 kB / 0.5373 GB, free: 12.02 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2925/0.7498, allocations: 46.65 MB / 0.5829 GB, free: 100.2 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.79/15.54, allocations: 4.062 kB / 0.5829 GB, free: 100.2 MB / 462.1 MB " [Timeout remaining time 644] (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: 18.789173414999823]