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.001397/0.001397, allocations: 107.2 kB / 20.44 MB, free: 1.207 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.001621/0.001621, allocations: 211.4 kB / 23.73 MB, free: 4.41 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.447/1.447, allocations: 230.6 MB / 257.5 MB, free: 7.82 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.00161/0.00161, allocations: 51.91 kB / 377.7 MB, free: 2.949 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2491/0.2507, allocations: 53.36 MB / 431.1 MB, free: 6.641 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01199/0.2627, allocations: 9.149 MB / 440.2 MB, free: 13.46 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006494/0.2692, allocations: 3.283 MB / 443.5 MB, free: 10.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001259/0.2705, allocations: 71.5 kB / 443.6 MB, free: 10.09 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001948/0.2724, allocations: 0.7648 MB / 444.4 MB, free: 9.32 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002848/0.2752, allocations: 0.8892 MB / 445.2 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001115/0.2764, allocations: 431.4 kB / 445.7 MB, free: 8.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003677/0.28, allocations: 2.766 MB / 448.4 MB, free: 5.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001981/0.282, allocations: 1.297 MB / 449.7 MB, free: 3.859 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002175/0.2842, allocations: 1.304 MB / 451 MB, free: 2.551 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002811/0.287, allocations: 1.514 MB / 452.6 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0007065/0.2877, allocations: 336 kB / 452.9 MB, free: 0.7031 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001052/0.2888, allocations: 443.8 kB / 453.3 MB, free: 276 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001012/0.2898, allocations: 0.9465 MB / 454.3 MB, free: 15.32 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001792/0.2916, allocations: 1.221 MB / 455.5 MB, free: 14.09 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005465/0.297, allocations: 4.437 MB / 459.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.881e-06/0.297, allocations: 0 / 459.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.324e-06/0.297, allocations: 0 / 459.9 MB, free: 9.641 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001174/0.2972, allocations: 0 / 459.9 MB, free: 9.641 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.006832/0.304, allocations: 3.065 MB / 463 MB, free: 6.527 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.868e-05/0.304, allocations: 8.031 kB / 463 MB, free: 6.52 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004858/0.3045, allocations: 324.9 kB / 463.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009515/0.3055, allocations: 335 kB / 463.6 MB, free: 5.863 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003596/0.3091, allocations: 1.558 MB / 465.2 MB, free: 4.266 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001631/0.3092, allocations: 168.4 kB / 465.4 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004574/0.3097, allocations: 223.9 kB / 465.6 MB, free: 3.879 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005532/0.3152, allocations: 3.009 MB / 468.6 MB, free: 0.7578 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.834e-05/0.3153, allocations: 15.92 kB / 468.6 MB, free: 0.7422 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002104/0.3155, allocations: 91.98 kB / 468.7 MB, free: 0.6523 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000141/0.3156, allocations: 112.3 kB / 468.8 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004514/0.3202, allocations: 2.426 MB / 471.2 MB, free: 14.1 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01568/0.3358, allocations: 8.167 MB / 479.4 MB, free: 5.652 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002298/0.3381, allocations: 1.186 MB / 480.6 MB, free: 4.465 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001769/0.3399, allocations: 0.9132 MB / 481.5 MB, free: 3.551 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000243/0.3401, allocations: 52.95 kB / 481.5 MB, free: 3.5 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.508e-05/0.3402, allocations: 43.56 kB / 481.6 MB, free: 3.445 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.196e-06/0.3402, allocations: 0 / 481.6 MB, free: 3.445 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01495/0.3551, allocations: 6.07 MB / 487.7 MB, free: 13.35 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.004e-05/0.3552, allocations: 68.34 kB / 487.7 MB, free: 13.27 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.3576, allocations: 1.597 MB / 489.3 MB, free: 11.67 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001473/0.3578, allocations: 45.7 kB / 489.4 MB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008966/0.3587, allocations: 1.13 MB / 490.5 MB, free: 10.47 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004349/0.3591, allocations: 460.2 kB / 490.9 MB, free: 10.02 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004592/0.3596, allocations: 271.5 kB / 491.2 MB, free: 9.746 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.3597, allocations: 305.1 kB / 491.5 MB, free: 9.445 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001275/0.361, allocations: 0.7105 MB / 492.2 MB, free: 8.734 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001577/0.3626, allocations: 1.138 MB / 493.4 MB, free: 7.41 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002977/0.3655, allocations: 1.967 MB / 495.3 MB, free: 5.258 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.015e-05/0.3656, allocations: 4 kB / 495.3 MB, free: 5.254 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004683/0.3702, allocations: 2.448 MB / 497.8 MB, free: 2.785 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.871e-05/0.3703, allocations: 8 kB / 497.8 MB, free: 2.777 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.146e-05/0.3703, allocations: 16 kB / 497.8 MB, free: 2.762 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001054/0.3713, allocations: 425.7 kB / 498.2 MB, free: 2.336 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.3727, allocations: 347.5 kB / 498.6 MB, free: 1.996 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007907/0.3806, allocations: 6.777 MB / 0.4935 GB, free: 10.88 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001724/0.3823, allocations: 111.8 kB / 0.4936 GB, free: 10.77 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002062/0.3825, allocations: 67.92 kB / 0.4937 GB, free: 10.71 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.001584/0.3841, allocations: 0.7218 MB / 0.4944 GB, free: 9.977 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004654/0.3846, allocations: 178.9 kB / 0.4945 GB, free: 9.801 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004143/0.3887, allocations: 2.103 MB / 0.4966 GB, free: 7.672 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.422e-05/0.3887, allocations: 15.94 kB / 0.4966 GB, free: 7.656 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.56e-05/0.3887, allocations: 11.92 kB / 0.4966 GB, free: 7.645 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.363e-05/0.3887, allocations: 3.984 kB / 0.4966 GB, free: 7.641 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008999/0.3977, allocations: 4.407 MB / 0.5009 GB, free: 3.117 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.516e-06/0.3978, allocations: 4 kB / 0.5009 GB, free: 3.113 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000997/0.3988, allocations: 227.6 kB / 0.5011 GB, free: 2.891 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.4, allocations: 447.5 kB / 0.5016 GB, free: 2.441 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001237/0.4001, allocations: 39.92 kB / 0.5016 GB, free: 2.402 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009035/0.4092, allocations: 8.234 MB / 0.5096 GB, free: 9.711 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.212e-06/0.4092, allocations: 4 kB / 0.5097 GB, free: 9.707 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005551/0.4147, allocations: 3.148 MB / 0.5127 GB, free: 6.484 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001227/0.4159, allocations: 326.7 kB / 0.513 GB, free: 6.164 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003573/0.4163, allocations: 31.98 kB / 0.5131 GB, free: 6.133 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001115/0.4174, allocations: 79.91 kB / 0.5131 GB, free: 6.055 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002961/0.4177, allocations: 108.7 kB / 0.5132 GB, free: 5.949 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.573e-05/0.4178, allocations: 35.98 kB / 0.5133 GB, free: 5.914 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001791/0.4196, allocations: 1.071 MB / 0.5143 GB, free: 4.848 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4196, allocations: 4 kB / 0.5143 GB, free: 4.844 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001944/0.4215, allocations: 491.9 kB / 0.5148 GB, free: 4.363 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.005932/0.4275, allocations: 3.777 MB / 0.5185 GB, free: 500 kB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003981/0.4314, allocations: 2.151 MB / 0.5206 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created event and clocks part: time 7.744e-06/0.4315, allocations: 0 / 0.5206 GB, free: 14.29 MB / 446.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002533/0.434, allocations: 1.423 MB / 0.522 GB, free: 12.82 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00242/0.4364, allocations: 485.8 kB / 0.5224 GB, free: 12.36 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2211/0.6575, allocations: 17.77 MB / 0.5398 GB, free: 102.2 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001589/0.6591, allocations: 1.303 MB / 0.5411 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001254/0.6603, allocations: 388.8 kB / 0.5414 GB, free: 101.9 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009654/0.6613, allocations: 0.8772 MB / 0.5423 GB, free: 101.2 MB / 446.1 MB Notification: Performance of SimCode: time 9.71e-07/0.6613, allocations: 0 / 0.5423 GB, free: 101.2 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08493/0.7462, allocations: 48.59 MB / 0.5898 GB, free: 57.73 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.95, allocations: 14.83 kB / 0.5898 GB, free: 57.72 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.990056646987796]