Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001498/0.001498, allocations: 132.4 kB / 17.8 MB, free: 5.219 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001675/0.001675, allocations: 210.5 kB / 20.75 MB, free: 2.27 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.468/1.468, allocations: 230.5 MB / 254 MB, free: 15.17 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00194/0.00194, allocations: 59.91 kB / 373 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1063/0.1083, allocations: 53.39 MB / 426.4 MB, free: 4.605 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01312/0.1214, allocations: 10.38 MB / 436.8 MB, free: 10.18 MB / 366.1 MB Notification: Performance of NFInst.instExpressions: time 0.007401/0.1288, allocations: 3.513 MB / 440.3 MB, free: 6.652 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.1309, allocations: 75.5 kB / 440.3 MB, free: 6.578 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002582/0.1335, allocations: 0.8232 MB / 441.2 MB, free: 5.75 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003293/0.1368, allocations: 0.8853 MB / 442.1 MB, free: 4.859 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001381/0.1381, allocations: 427.4 kB / 442.5 MB, free: 4.441 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.004373/0.1425, allocations: 2.752 MB / 445.2 MB, free: 1.676 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.2087/0.3512, allocations: 1.725 MB / 447 MB, free: 9.574 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002637/0.3539, allocations: 1.301 MB / 448.3 MB, free: 9.484 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002796/0.3567, allocations: 1.614 MB / 449.9 MB, free: 9.227 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.001192/0.3579, allocations: 334.8 kB / 450.2 MB, free: 9.227 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001707/0.3596, allocations: 445.1 kB / 450.6 MB, free: 9.227 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001617/0.3612, allocations: 0.9511 MB / 451.6 MB, free: 9.121 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.003346/0.3645, allocations: 1.513 MB / 453.1 MB, free: 8.719 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.007595/0.3721, allocations: 4.414 MB / 457.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.46e-06/0.3721, allocations: 1.062 kB / 457.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.983e-06/0.3721, allocations: 0 / 457.5 MB, free: 8.168 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001837/0.3723, allocations: 0 / 457.5 MB, free: 8.168 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.01157/0.3839, allocations: 3.13 MB / 460.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.46e-05/0.3839, allocations: 8.688 kB / 460.6 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.001527/0.3855, allocations: 326.3 kB / 461 MB, free: 6.766 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001974/0.3874, allocations: 332.6 kB / 461.3 MB, free: 6.609 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004853/0.3923, allocations: 1.642 MB / 462.9 MB, free: 5.82 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002207/0.3925, allocations: 170.9 kB / 463.1 MB, free: 5.742 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.001041/0.3936, allocations: 216.8 kB / 463.3 MB, free: 5.672 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.008929/0.4025, allocations: 2.918 MB / 466.2 MB, free: 4.477 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 0.0001573/0.4026, allocations: 11.36 kB / 466.2 MB, free: 4.473 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000861/0.4035, allocations: 89.08 kB / 466.3 MB, free: 4.406 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.000175/0.4037, allocations: 112.9 kB / 466.4 MB, free: 4.395 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.006194/0.4099, allocations: 2.438 MB / 468.9 MB, free: 3.527 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01887/0.4287, allocations: 9.04 MB / 477.9 MB, free: 13.55 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.003076/0.4318, allocations: 1.63 MB / 479.5 MB, free: 12.39 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.002069/0.4339, allocations: 0.9229 MB / 480.5 MB, free: 11.94 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0003775/0.4343, allocations: 203.2 kB / 480.7 MB, free: 11.74 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.544e-05/0.4343, allocations: 43.72 kB / 480.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.557e-06/0.4343, allocations: 3.781 kB / 480.7 MB, free: 11.7 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.01719/0.4515, allocations: 6.585 MB / 487.3 MB, free: 7.902 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.431e-05/0.4516, allocations: 69.05 kB / 487.4 MB, free: 7.836 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002561/0.4541, allocations: 1.567 MB / 488.9 MB, free: 7 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.000217/0.4543, allocations: 49.39 kB / 489 MB, free: 6.949 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009573/0.4553, allocations: 1.144 MB / 490.1 MB, free: 5.941 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0005199/0.4558, allocations: 453.7 kB / 490.6 MB, free: 5.555 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004761/0.4563, allocations: 273.1 kB / 490.8 MB, free: 5.395 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.4564, allocations: 301.1 kB / 491.1 MB, free: 5.098 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001238/0.4577, allocations: 0.7085 MB / 491.8 MB, free: 4.75 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001523/0.4592, allocations: 1.141 MB / 493 MB, free: 3.852 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00307/0.4622, allocations: 1.968 MB / 494.9 MB, free: 1.848 MB / 382.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.272e-05/0.4623, allocations: 6.625 kB / 495 MB, free: 1.844 MB / 382.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004944/0.4672, allocations: 2.517 MB / 497.5 MB, free: 15.38 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.738e-05/0.4672, allocations: 15.94 kB / 497.5 MB, free: 15.36 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.494e-05/0.4673, allocations: 12 kB / 497.5 MB, free: 15.35 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001092/0.4684, allocations: 426.4 kB / 497.9 MB, free: 14.92 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.4698, allocations: 356.9 kB / 498.3 MB, free: 14.59 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008473/0.4783, allocations: 7.13 MB / 0.4935 GB, free: 7.098 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001864/0.4801, allocations: 108 kB / 0.4936 GB, free: 6.992 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0003013/0.4805, allocations: 67.98 kB / 0.4937 GB, free: 6.926 MB / 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.001809/0.4823, allocations: 0.7175 MB / 0.4944 GB, free: 6.219 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000668/0.4829, allocations: 181.5 kB / 0.4946 GB, free: 6.043 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004913/0.4878, allocations: 2.184 MB / 0.4967 GB, free: 3.824 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.79e-05/0.4879, allocations: 12 kB / 0.4967 GB, free: 3.812 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.444e-05/0.4879, allocations: 4 kB / 0.4967 GB, free: 3.809 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.295e-05/0.4879, allocations: 11.91 kB / 0.4967 GB, free: 3.797 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.01137/0.4993, allocations: 4.763 MB / 0.5014 GB, free: 14.97 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.662e-05/0.4993, allocations: 4 kB / 0.5014 GB, free: 14.96 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001042/0.5003, allocations: 226 kB / 0.5016 GB, free: 14.76 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001335/0.5017, allocations: 450.8 kB / 0.502 GB, free: 14.31 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001715/0.5018, allocations: 31.98 kB / 0.5021 GB, free: 14.28 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009789/0.5116, allocations: 8.695 MB / 0.5106 GB, free: 5.066 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.84e-05/0.5116, allocations: 4 kB / 0.5106 GB, free: 5.062 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006475/0.5181, allocations: 3.219 MB / 0.5137 GB, free: 1.77 MB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001305/0.5194, allocations: 407.8 kB / 0.5141 GB, free: 1.355 MB / 414.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0006518/0.5201, allocations: 31.98 kB / 0.5141 GB, free: 1.324 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001437/0.5215, allocations: 79.91 kB / 0.5142 GB, free: 1.246 MB / 414.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003413/0.5218, allocations: 110.9 kB / 0.5143 GB, free: 1.145 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001206/0.522, allocations: 39.98 kB / 0.5144 GB, free: 1.105 MB / 414.1 MB Notification: Performance of sorting global known variables: time 0.002433/0.5244, allocations: 1.071 MB / 0.5154 GB, free: 40 kB / 414.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.5244, allocations: 0 / 0.5154 GB, free: 40 kB / 414.1 MB Notification: Performance of remove unused functions: time 0.002974/0.5274, allocations: 492.1 kB / 0.5159 GB, free: 15.56 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.006917/0.5343, allocations: 3.855 MB / 0.5196 GB, free: 11.63 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004529/0.5388, allocations: 2.224 MB / 0.5218 GB, free: 9.398 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 7.665e-06/0.5388, allocations: 0 / 0.5218 GB, free: 9.398 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002775/0.5416, allocations: 1.426 MB / 0.5232 GB, free: 7.949 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.003273/0.5449, allocations: 487.7 kB / 0.5237 GB, free: 7.5 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03604/0.5809, allocations: 17.91 MB / 0.5412 GB, free: 5 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002703/0.5836, allocations: 1.867 MB / 0.543 GB, free: 3.098 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001629/0.5852, allocations: 390.9 kB / 0.5434 GB, free: 2.711 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001639/0.5869, allocations: 0.8819 MB / 0.5442 GB, free: 1.828 MB / 446.1 MB Notification: Performance of SimCode: time 1.182e-06/0.5869, allocations: 0 / 0.5442 GB, free: 1.828 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1102/0.6971, allocations: 45.6 MB / 0.5887 GB, free: 4.676 MB / 494.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.78, allocations: 15.75 kB / 0.5888 GB, free: 4.66 MB / 494.1 MB " [Timeout remaining time 646] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable loadInertia.w from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[1] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[1] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable smpm.is[2] in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable smpm.is[2] from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! Error: Could not read variable vfController.x in file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv. Warning: Get data of variable vfController.x from file Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 17.00132316898089]