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.001868/0.001868, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002166/0.002166, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.484/1.484, allocations: 230.6 MB / 254.1 MB, free: 15.1 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.001584/0.001584, allocations: 47.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1101/0.1117, allocations: 53.32 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.2132/0.3249, allocations: 10.4 MB / 436.7 MB, free: 5.867 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005928/0.3308, allocations: 3.494 MB / 440.2 MB, free: 4.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001596/0.3324, allocations: 74.5 kB / 440.3 MB, free: 4.066 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001931/0.3344, allocations: 0.8325 MB / 441.1 MB, free: 3.617 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002769/0.3371, allocations: 0.8727 MB / 442 MB, free: 3.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001046/0.3382, allocations: 431.7 kB / 442.4 MB, free: 2.789 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003387/0.3416, allocations: 2.764 MB / 445.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002405/0.344, allocations: 1.724 MB / 446.9 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002529/0.3465, allocations: 1.296 MB / 448.2 MB, free: 15.97 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002954/0.3495, allocations: 1.621 MB / 449.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0008599/0.3503, allocations: 336 kB / 450.1 MB, free: 15.23 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001297/0.3516, allocations: 445.7 kB / 450.6 MB, free: 15.2 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001242/0.3529, allocations: 0.9482 MB / 451.5 MB, free: 14.68 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002614/0.3555, allocations: 1.509 MB / 453 MB, free: 13.69 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006499/0.362, allocations: 4.412 MB / 457.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.771e-06/0.362, allocations: 0 / 457.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.773e-06/0.362, allocations: 0 / 457.5 MB, free: 11.46 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001346/0.3621, allocations: 0 / 457.5 MB, free: 11.46 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.008778/0.3709, allocations: 3.141 MB / 460.6 MB, free: 9.254 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.788e-05/0.3709, allocations: 13.31 kB / 460.6 MB, free: 9.25 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0006636/0.3716, allocations: 326.3 kB / 460.9 MB, free: 9.004 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00108/0.3727, allocations: 328.2 kB / 461.2 MB, free: 8.84 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003468/0.3762, allocations: 1.641 MB / 462.9 MB, free: 7.648 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001819/0.3763, allocations: 170 kB / 463.1 MB, free: 7.566 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000571/0.3769, allocations: 224.3 kB / 463.3 MB, free: 7.488 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.007354/0.3843, allocations: 2.917 MB / 466.2 MB, free: 5.746 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001157/0.3844, allocations: 6.062 kB / 466.2 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0004542/0.3848, allocations: 87.72 kB / 466.3 MB, free: 5.676 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001814/0.385, allocations: 110.5 kB / 466.4 MB, free: 5.656 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.005761/0.3908, allocations: 2.441 MB / 468.8 MB, free: 4.41 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01856/0.4093, allocations: 9.043 MB / 477.9 MB, free: 12.91 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002754/0.4121, allocations: 1.629 MB / 479.5 MB, free: 11.17 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002017/0.4141, allocations: 0.9219 MB / 480.4 MB, free: 10.25 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003506/0.4145, allocations: 203.2 kB / 480.6 MB, free: 10.02 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.136e-05/0.4145, allocations: 47.5 kB / 480.7 MB, free: 9.961 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.016e-06/0.4145, allocations: 0 / 480.7 MB, free: 9.961 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01561/0.4301, allocations: 6.6 MB / 487.3 MB, free: 3.195 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.135e-05/0.4302, allocations: 64.41 kB / 487.3 MB, free: 3.121 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002566/0.4327, allocations: 1.57 MB / 488.9 MB, free: 1.543 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000135/0.4329, allocations: 49.7 kB / 488.9 MB, free: 1.488 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00093/0.4338, allocations: 1.13 MB / 490.1 MB, free: 352 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004556/0.4343, allocations: 456.3 kB / 490.5 MB, free: 15.89 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000466/0.4347, allocations: 275.5 kB / 490.8 MB, free: 15.61 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001349/0.4349, allocations: 301.1 kB / 491.1 MB, free: 15.32 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0013/0.4362, allocations: 0.7105 MB / 491.8 MB, free: 14.61 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00161/0.4378, allocations: 1.142 MB / 492.9 MB, free: 13.28 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003001/0.4408, allocations: 1.963 MB / 494.9 MB, free: 11.13 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.306e-06/0.4408, allocations: 4 kB / 494.9 MB, free: 11.13 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004693/0.4455, allocations: 2.531 MB / 497.4 MB, free: 8.562 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.822e-05/0.4455, allocations: 8 kB / 497.4 MB, free: 8.555 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.443e-05/0.4455, allocations: 16 kB / 497.5 MB, free: 8.539 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001046/0.4466, allocations: 415.4 kB / 497.9 MB, free: 8.121 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001365/0.4479, allocations: 355.4 kB / 498.2 MB, free: 7.773 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007972/0.4559, allocations: 7.124 MB / 0.4935 GB, free: 252 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00165/0.4576, allocations: 111.9 kB / 0.4936 GB, free: 140 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001871/0.4577, allocations: 63.94 kB / 0.4937 GB, free: 76 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.001452/0.4592, allocations: 0.7121 MB / 0.4944 GB, free: 15.35 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004363/0.4596, allocations: 178.9 kB / 0.4945 GB, free: 15.18 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004272/0.4639, allocations: 2.19 MB / 0.4967 GB, free: 12.95 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.595e-05/0.4639, allocations: 12 kB / 0.4967 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.194e-05/0.4639, allocations: 7.938 kB / 0.4967 GB, free: 12.93 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.798e-05/0.464, allocations: 7.969 kB / 0.4967 GB, free: 12.92 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009112/0.4731, allocations: 4.777 MB / 0.5014 GB, free: 8 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.909e-06/0.4731, allocations: 4 kB / 0.5014 GB, free: 7.996 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009916/0.4741, allocations: 215.7 kB / 0.5016 GB, free: 7.785 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001289/0.4754, allocations: 465 kB / 0.502 GB, free: 7.32 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001266/0.4755, allocations: 36.86 kB / 0.502 GB, free: 7.285 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00957/0.4851, allocations: 8.684 MB / 0.5105 GB, free: 14.04 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.755e-06/0.4851, allocations: 7.938 kB / 0.5105 GB, free: 14.03 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005813/0.4909, allocations: 3.215 MB / 0.5137 GB, free: 10.72 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001126/0.492, allocations: 411.8 kB / 0.5141 GB, free: 10.3 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002753/0.4923, allocations: 35.92 kB / 0.5141 GB, free: 10.27 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009557/0.4932, allocations: 79.91 kB / 0.5142 GB, free: 10.19 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002637/0.4935, allocations: 107.6 kB / 0.5143 GB, free: 10.09 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.907e-05/0.4936, allocations: 36 kB / 0.5143 GB, free: 10.05 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001763/0.4953, allocations: 1.074 MB / 0.5154 GB, free: 8.98 MB / 430.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4953, allocations: 0 / 0.5154 GB, free: 8.98 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001862/0.4972, allocations: 487.9 kB / 0.5158 GB, free: 8.504 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.005917/0.5031, allocations: 3.857 MB / 0.5196 GB, free: 4.539 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004125/0.5072, allocations: 2.223 MB / 0.5218 GB, free: 2.258 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.965e-06/0.5072, allocations: 4 kB / 0.5218 GB, free: 2.254 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002635/0.5099, allocations: 1.418 MB / 0.5232 GB, free: 0.7812 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002618/0.5125, allocations: 488.2 kB / 0.5236 GB, free: 336 kB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03081/0.5433, allocations: 17.92 MB / 0.5411 GB, free: 13.66 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001905/0.5452, allocations: 1.871 MB / 0.543 GB, free: 11.75 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001227/0.5464, allocations: 394.8 kB / 0.5433 GB, free: 11.36 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001312/0.5478, allocations: 0.8742 MB / 0.5442 GB, free: 10.49 MB / 462.1 MB Notification: Performance of SimCode: time 1.082e-06/0.5478, allocations: 0 / 0.5442 GB, free: 10.49 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1044/0.6522, allocations: 45.61 MB / 0.5887 GB, free: 13.31 MB / 0.4981 GB Notification: Performance of buildModelFMU: Generate platform static: time 12.79/13.45, allocations: 7.688 kB / 0.5887 GB, free: 13.3 MB / 0.4981 GB " [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.558703160990262]