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.001131/0.001131, allocations: 83.69 kB / 20.67 MB, free: 3.887 MB / 18.57 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.0009512/0.0009512, allocations: 170 kB / 23.95 MB, free: 0.6094 MB / 18.57 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 0.9006/0.9006, allocations: 177.1 MB / 204.3 MB, free: 5.707 MB / 186.7 MB " [Timeout remaining time 179] 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 1.383e-06/1.383e-06, allocations: 0 / 324.6 MB, free: 15.78 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.348e-06/1.073e-05, allocations: 8.75 kB / 324.6 MB, free: 15.77 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007411/0.007422, allocations: 9.156 MB / 333.7 MB, free: 6.574 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.005131/0.01255, allocations: 3.306 MB / 337.1 MB, free: 3.254 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0008912/0.01344, allocations: 75.5 kB / 337.1 MB, free: 3.18 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001251/0.01469, allocations: 0.7568 MB / 337.9 MB, free: 2.418 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001502/0.0162, allocations: 0.9274 MB / 338.8 MB, free: 1.484 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005319/0.01673, allocations: 431.2 kB / 339.2 MB, free: 1.059 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001779/0.01851, allocations: 2.862 MB / 342.1 MB, free: 14.18 MB / 314.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001631/0.02014, allocations: 1.305 MB / 343.4 MB, free: 12.82 MB / 314.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00225/0.02239, allocations: 1.895 MB / 345.3 MB, free: 10.92 MB / 314.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001402/0.02379, allocations: 1.36 MB / 346.7 MB, free: 9.555 MB / 314.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003483/0.02414, allocations: 336 kB / 347 MB, free: 9.227 MB / 314.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005649/0.0247, allocations: 435.8 kB / 347.4 MB, free: 8.801 MB / 314.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005906/0.02529, allocations: 0.9815 MB / 348.4 MB, free: 7.816 MB / 314.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009059/0.0262, allocations: 1.033 MB / 349.4 MB, free: 6.781 MB / 314.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003485/0.02969, allocations: 4.456 MB / 353.9 MB, free: 2.312 MB / 314.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.02969, allocations: 0 / 353.9 MB, free: 2.312 MB / 314.7 MB Notification: Performance of FrontEnd: time 1.403e-06/0.02969, allocations: 0 / 353.9 MB, free: 2.312 MB / 314.7 MB Notification: Performance of Transformations before backend: time 8.061e-05/0.02977, allocations: 0 / 353.9 MB, free: 2.312 MB / 314.7 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.004219/0.03399, allocations: 3.036 MB / 356.9 MB, free: 15.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.948e-05/0.03404, allocations: 8.031 kB / 356.9 MB, free: 15.22 MB / 330.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005851/0.03462, allocations: 321 kB / 357.2 MB, free: 14.89 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005741/0.0352, allocations: 335.1 kB / 357.6 MB, free: 14.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002035/0.03723, allocations: 1.558 MB / 359.1 MB, free: 12.96 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.84e-05/0.03732, allocations: 172.7 kB / 359.3 MB, free: 12.79 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002286/0.03755, allocations: 225.4 kB / 359.5 MB, free: 12.57 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003402/0.04095, allocations: 3.013 MB / 362.5 MB, free: 9.449 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.91e-05/0.041, allocations: 15.94 kB / 362.5 MB, free: 9.434 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001399/0.04114, allocations: 91.98 kB / 362.6 MB, free: 9.344 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.049e-05/0.04123, allocations: 116.3 kB / 362.7 MB, free: 9.227 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00306/0.04429, allocations: 2.43 MB / 365.2 MB, free: 6.781 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01048/0.05477, allocations: 8.16 MB / 373.3 MB, free: 14.34 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001461/0.05624, allocations: 1.175 MB / 374.5 MB, free: 13.16 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001078/0.05731, allocations: 0.9325 MB / 375.4 MB, free: 12.23 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001762/0.05749, allocations: 52.95 kB / 375.5 MB, free: 12.18 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.933e-05/0.05752, allocations: 43.56 kB / 375.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of pre-optimization done (n=105): time 2.785e-06/0.05752, allocations: 0 / 375.5 MB, free: 12.12 MB / 346.7 MB Notification: Performance of matching and sorting (n=122): time 0.009824/0.06735, allocations: 6.057 MB / 381.6 MB, free: 6.035 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.135e-05/0.06739, allocations: 64.41 kB / 381.7 MB, free: 5.961 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001731/0.06912, allocations: 1.6 MB / 383.3 MB, free: 4.352 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 8.511e-05/0.0692, allocations: 45.7 kB / 383.3 MB, free: 4.301 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005506/0.06975, allocations: 1.13 MB / 384.4 MB, free: 3.156 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002468/0.07, allocations: 452.2 kB / 384.9 MB, free: 2.711 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002787/0.07028, allocations: 271.5 kB / 385.1 MB, free: 2.441 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 7.385e-05/0.07035, allocations: 301.1 kB / 385.4 MB, free: 2.145 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001043/0.0714, allocations: 0.7105 MB / 386.1 MB, free: 1.434 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009268/0.07232, allocations: 1.142 MB / 387.3 MB, free: 116 kB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001792/0.07412, allocations: 1.963 MB / 389.2 MB, free: 13.97 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.408e-06/0.07412, allocations: 4 kB / 389.2 MB, free: 13.96 MB / 362.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.002955/0.07708, allocations: 2.448 MB / 391.7 MB, free: 11.5 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.693e-05/0.07711, allocations: 8 kB / 391.7 MB, free: 11.49 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.874e-05/0.07713, allocations: 16 kB / 391.7 MB, free: 11.47 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006815/0.07781, allocations: 425.9 kB / 392.1 MB, free: 11.05 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007352/0.07854, allocations: 347.5 kB / 392.5 MB, free: 10.71 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.005138/0.08368, allocations: 6.773 MB / 399.2 MB, free: 3.586 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001189/0.08487, allocations: 111.8 kB / 399.4 MB, free: 3.477 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001058/0.08498, allocations: 60 kB / 399.4 MB, free: 3.418 MB / 362.7 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.001674/0.08665, allocations: 0.7188 MB / 400.1 MB, free: 2.691 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003335/0.08698, allocations: 178.8 kB / 400.3 MB, free: 2.516 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002516/0.0895, allocations: 2.122 MB / 402.4 MB, free: 380 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.265e-06/0.08951, allocations: 12 kB / 402.4 MB, free: 368 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.412e-06/0.08951, allocations: 4 kB / 402.4 MB, free: 364 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.096e-05/0.08953, allocations: 7.969 kB / 402.5 MB, free: 356 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00538/0.09491, allocations: 4.407 MB / 406.9 MB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.374e-06/0.09491, allocations: 4 kB / 406.9 MB, free: 11.81 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007559/0.09567, allocations: 215.7 kB / 407.1 MB, free: 11.6 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006729/0.09634, allocations: 463.3 kB / 407.5 MB, free: 11.13 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.688e-05/0.09641, allocations: 35.98 kB / 407.6 MB, free: 11.1 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005561/0.102, allocations: 8.21 MB / 415.8 MB, free: 2.438 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.481e-06/0.102, allocations: 15.81 kB / 415.8 MB, free: 2.422 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003465/0.1054, allocations: 3.128 MB / 418.9 MB, free: 15.22 MB / 394.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007978/0.1062, allocations: 326.7 kB / 419.2 MB, free: 14.9 MB / 394.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001494/0.1064, allocations: 39.92 kB / 419.3 MB, free: 14.86 MB / 394.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004903/0.1069, allocations: 83.91 kB / 419.4 MB, free: 14.78 MB / 394.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001766/0.1071, allocations: 100.7 kB / 419.5 MB, free: 14.68 MB / 394.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.81e-05/0.1071, allocations: 39.94 kB / 419.5 MB, free: 14.64 MB / 394.7 MB Notification: Performance of sorting global known variables: time 0.001133/0.1082, allocations: 1.074 MB / 420.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1082, allocations: 4 kB / 420.6 MB, free: 13.57 MB / 394.7 MB Notification: Performance of remove unused functions: time 0.001408/0.1096, allocations: 487.9 kB / 421 MB, free: 13.09 MB / 394.7 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.003769/0.1134, allocations: 3.773 MB / 424.8 MB, free: 9.23 MB / 394.7 MB Notification: Performance of simCode: created initialization part: time 0.002631/0.116, allocations: 2.155 MB / 427 MB, free: 7.027 MB / 394.7 MB Notification: Performance of simCode: created event and clocks part: time 5.44e-06/0.116, allocations: 0 / 427 MB, free: 7.027 MB / 394.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001804/0.1179, allocations: 1.423 MB / 428.4 MB, free: 5.559 MB / 394.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001564/0.1194, allocations: 487.3 kB / 428.9 MB, free: 5.09 MB / 394.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02259/0.142, allocations: 17.7 MB / 446.6 MB, free: 2.672 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001043/0.143, allocations: 1.302 MB / 447.9 MB, free: 1.328 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.0008618/0.1439, allocations: 394.8 kB / 448.3 MB, free: 0.9375 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008137/0.1447, allocations: 0.8713 MB / 449.1 MB, free: 68 kB / 410.7 MB Notification: Performance of SimCode: time 1.312e-06/0.1447, allocations: 0 / 449.1 MB, free: 68 kB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.204/0.3487, allocations: 48.57 MB / 497.7 MB, free: 76.4 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.508/8.857, allocations: 22.64 kB / 497.7 MB, free: 76.39 MB / 410.7 MB " [Timeout remaining time 651] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/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: 11.012979730032384]