Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 111.1 kB / 20.44 MB, free: 1.176 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002223/0.002223, allocations: 206.3 kB / 23.73 MB, free: 4.379 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.433/1.433, allocations: 230.6 MB / 257.5 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_1_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_1_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.001479/0.001479, allocations: 43.92 kB / 377.7 MB, free: 2.961 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2328/0.2342, allocations: 53.37 MB / 431.1 MB, free: 6.781 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01208/0.2463, allocations: 9.16 MB / 440.3 MB, free: 13.59 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006591/0.2529, allocations: 3.283 MB / 443.5 MB, free: 10.29 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001479/0.2544, allocations: 71.5 kB / 443.6 MB, free: 10.22 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002002/0.2564, allocations: 0.7608 MB / 444.4 MB, free: 9.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002698/0.2591, allocations: 0.897 MB / 445.3 MB, free: 8.555 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009768/0.2601, allocations: 427.4 kB / 445.7 MB, free: 8.137 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003325/0.2634, allocations: 2.759 MB / 448.4 MB, free: 5.367 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001888/0.2653, allocations: 1.356 MB / 449.8 MB, free: 3.941 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001836/0.2671, allocations: 1.304 MB / 451.1 MB, free: 2.633 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002197/0.2693, allocations: 1.623 MB / 452.7 MB, free: 1.004 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000484/0.2698, allocations: 336 kB / 453.1 MB, free: 0.6758 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008507/0.2707, allocations: 443.8 kB / 453.5 MB, free: 248 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009764/0.2716, allocations: 0.9544 MB / 454.4 MB, free: 15.28 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00141/0.273, allocations: 1.214 MB / 455.7 MB, free: 14.06 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004978/0.278, allocations: 4.433 MB / 460.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.228e-06/0.278, allocations: 0 / 460.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.278, allocations: 0 / 460.1 MB, free: 9.613 MB / 366.1 MB Notification: Performance of Transformations before backend: time 7.235e-05/0.2781, allocations: 4 kB / 460.1 MB, free: 9.609 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.006311/0.2844, allocations: 3.069 MB / 463.2 MB, free: 6.492 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.668e-05/0.2845, allocations: 8.031 kB / 463.2 MB, free: 6.484 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004474/0.2849, allocations: 321 kB / 463.5 MB, free: 6.16 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008537/0.2858, allocations: 327 kB / 463.8 MB, free: 5.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0032/0.289, allocations: 1.566 MB / 465.4 MB, free: 4.234 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001671/0.2891, allocations: 172.4 kB / 465.5 MB, free: 4.062 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003621/0.2895, allocations: 220 kB / 465.7 MB, free: 3.848 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005073/0.2946, allocations: 3.017 MB / 468.8 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.238e-05/0.2946, allocations: 11.94 kB / 468.8 MB, free: 0.707 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001986/0.2948, allocations: 88 kB / 468.9 MB, free: 0.6211 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001259/0.2949, allocations: 108.3 kB / 469 MB, free: 0.5117 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004291/0.2992, allocations: 2.426 MB / 471.4 MB, free: 14.07 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01441/0.3136, allocations: 8.171 MB / 479.6 MB, free: 5.621 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002199/0.3158, allocations: 1.19 MB / 480.8 MB, free: 4.434 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001774/0.3176, allocations: 0.9093 MB / 481.7 MB, free: 3.527 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002371/0.3179, allocations: 48.97 kB / 481.7 MB, free: 3.48 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.204e-05/0.3179, allocations: 43.56 kB / 481.8 MB, free: 3.426 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 2.965e-06/0.3179, allocations: 3.938 kB / 481.8 MB, free: 3.422 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01423/0.3321, allocations: 6.065 MB / 487.8 MB, free: 13.33 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.287e-05/0.3322, allocations: 64.41 kB / 487.9 MB, free: 13.25 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002409/0.3346, allocations: 1.6 MB / 489.5 MB, free: 11.64 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 9.605e-05/0.3347, allocations: 45.7 kB / 489.5 MB, free: 11.59 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009588/0.3357, allocations: 1.142 MB / 490.7 MB, free: 10.44 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004013/0.3361, allocations: 448.2 kB / 491.1 MB, free: 10 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004487/0.3365, allocations: 271.5 kB / 491.4 MB, free: 9.727 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001434/0.3366, allocations: 309.1 kB / 491.7 MB, free: 9.422 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001249/0.3379, allocations: 0.7066 MB / 492.4 MB, free: 8.715 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001653/0.3395, allocations: 1.146 MB / 493.5 MB, free: 7.383 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003046/0.3426, allocations: 1.967 MB / 495.5 MB, free: 5.23 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.097e-06/0.3426, allocations: 4 kB / 495.5 MB, free: 5.227 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004467/0.3471, allocations: 2.448 MB / 498 MB, free: 2.758 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.818e-05/0.3471, allocations: 8 kB / 498 MB, free: 2.75 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.234e-05/0.3471, allocations: 16 kB / 498 MB, free: 2.734 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001022/0.3481, allocations: 423.3 kB / 498.4 MB, free: 2.309 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001275/0.3494, allocations: 351.4 kB / 498.7 MB, free: 1.965 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007793/0.3572, allocations: 6.773 MB / 0.4937 GB, free: 10.86 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001477/0.3587, allocations: 111.8 kB / 0.4938 GB, free: 10.75 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000201/0.3589, allocations: 63.94 kB / 0.4938 GB, free: 10.68 MB / 414.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.001364/0.3603, allocations: 0.7163 MB / 0.4945 GB, free: 9.957 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003574/0.3606, allocations: 178.9 kB / 0.4947 GB, free: 9.781 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003936/0.3645, allocations: 2.107 MB / 0.4968 GB, free: 7.648 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.341e-05/0.3646, allocations: 12 kB / 0.4968 GB, free: 7.637 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.094e-05/0.3646, allocations: 11.94 kB / 0.4968 GB, free: 7.625 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.19e-05/0.3646, allocations: 11.86 kB / 0.4968 GB, free: 7.613 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008232/0.3728, allocations: 4.411 MB / 0.5011 GB, free: 3.082 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.919e-06/0.3728, allocations: 4 kB / 0.5011 GB, free: 3.078 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009731/0.3738, allocations: 223.7 kB / 0.5013 GB, free: 2.859 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00118/0.375, allocations: 451.4 kB / 0.5017 GB, free: 2.406 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.487e-05/0.3751, allocations: 31.98 kB / 0.5018 GB, free: 2.375 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00887/0.3839, allocations: 8.226 MB / 0.5098 GB, free: 9.691 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.3839, allocations: 4 kB / 0.5098 GB, free: 9.688 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005537/0.3895, allocations: 3.144 MB / 0.5129 GB, free: 6.469 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001078/0.3906, allocations: 334.7 kB / 0.5132 GB, free: 6.141 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002324/0.3908, allocations: 32 kB / 0.5132 GB, free: 6.109 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008813/0.3917, allocations: 83.89 kB / 0.5133 GB, free: 6.027 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000247/0.3919, allocations: 100.7 kB / 0.5134 GB, free: 5.93 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.364e-05/0.392, allocations: 39.98 kB / 0.5134 GB, free: 5.891 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001678/0.3937, allocations: 1.071 MB / 0.5145 GB, free: 4.824 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3937, allocations: 0 / 0.5145 GB, free: 4.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001647/0.3953, allocations: 491.9 kB / 0.515 GB, free: 4.344 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.005652/0.401, allocations: 3.785 MB / 0.5187 GB, free: 476 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003877/0.4049, allocations: 2.152 MB / 0.5208 GB, free: 14.27 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 5.08e-06/0.4049, allocations: 3.938 kB / 0.5208 GB, free: 14.26 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002484/0.4074, allocations: 1.422 MB / 0.5221 GB, free: 12.79 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002187/0.4095, allocations: 483.3 kB / 0.5226 GB, free: 12.33 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.208/0.6175, allocations: 17.78 MB / 0.54 GB, free: 100.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001275/0.6188, allocations: 1.305 MB / 0.5412 GB, free: 99.84 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.0009828/0.6198, allocations: 394.3 kB / 0.5416 GB, free: 99.82 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008426/0.6206, allocations: 0.8753 MB / 0.5425 GB, free: 99.12 MB / 446.1 MB Notification: Performance of SimCode: time 1.203e-06/0.6206, allocations: 0 / 0.5425 GB, free: 99.12 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08512/0.7058, allocations: 49.15 MB / 0.5905 GB, free: 54.8 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.07/13.77, allocations: 14.83 kB / 0.5905 GB, free: 54.79 MB / 446.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_4.1.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_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.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.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[1] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable vfController.x in file Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable vfController.x from file Modelica_4.1.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.90761198598193]