Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001537/0.001537, allocations: 108.6 kB / 21.22 MB, free: 0.75 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001634/0.001634, allocations: 187.8 kB / 24.5 MB, free: 4.02 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.419/1.419, allocations: 225.7 MB / 253.3 MB, free: 13.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001619/0.001619, allocations: 51.95 kB / 371.2 MB, free: 9.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.262/0.2636, allocations: 52.2 MB / 423.4 MB, free: 14.74 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01395/0.2775, allocations: 10.41 MB / 433.8 MB, free: 4.289 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.007726/0.2853, allocations: 3.443 MB / 437.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.002094/0.2874, allocations: 75.5 kB / 437.4 MB, free: 0.7617 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002636/0.29, allocations: 0.823 MB / 438.2 MB, free: 15.93 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003867/0.2939, allocations: 0.8893 MB / 439.1 MB, free: 15.04 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001568/0.2954, allocations: 443.2 kB / 439.5 MB, free: 14.61 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004175/0.2996, allocations: 2.747 MB / 442.2 MB, free: 11.85 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002278/0.3019, allocations: 1.348 MB / 443.6 MB, free: 10.43 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002382/0.3043, allocations: 1.297 MB / 444.9 MB, free: 9.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003099/0.3074, allocations: 1.619 MB / 446.5 MB, free: 7.508 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0006353/0.308, allocations: 336 kB / 446.8 MB, free: 7.18 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001144/0.3091, allocations: 439.8 kB / 447.3 MB, free: 6.75 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001147/0.3103, allocations: 0.9543 MB / 448.2 MB, free: 5.793 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002259/0.3125, allocations: 1.505 MB / 449.7 MB, free: 4.281 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.005844/0.3184, allocations: 4.394 MB / 454.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.702e-06/0.3184, allocations: 0 / 454.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3184, allocations: 0 / 454.1 MB, free: 15.87 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.000138/0.3185, allocations: 0 / 454.1 MB, free: 15.87 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.007572/0.3261, allocations: 3.061 MB / 457.2 MB, free: 12.76 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.102e-05/0.3262, allocations: 8.031 kB / 457.2 MB, free: 12.75 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 7.002e-05/0.3262, allocations: 56.61 kB / 457.2 MB, free: 12.7 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0005035/0.3267, allocations: 325 kB / 457.6 MB, free: 12.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008954/0.3276, allocations: 319 kB / 457.9 MB, free: 12.05 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003422/0.3311, allocations: 1.558 MB / 459.4 MB, free: 10.46 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001606/0.3312, allocations: 176.4 kB / 459.6 MB, free: 10.28 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004413/0.3317, allocations: 220 kB / 459.8 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.005474/0.3371, allocations: 2.917 MB / 462.7 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.061e-05/0.3372, allocations: 7.938 kB / 462.7 MB, free: 7.055 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002142/0.3374, allocations: 91.98 kB / 462.8 MB, free: 6.965 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001431/0.3375, allocations: 112.3 kB / 462.9 MB, free: 6.852 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004811/0.3424, allocations: 2.437 MB / 465.4 MB, free: 4.398 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01686/0.3592, allocations: 8.884 MB / 474.3 MB, free: 11.23 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002304/0.3615, allocations: 1.173 MB / 475.4 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00182/0.3633, allocations: 0.9176 MB / 476.4 MB, free: 9.137 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002487/0.3636, allocations: 56.94 kB / 476.4 MB, free: 9.082 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.74e-05/0.3636, allocations: 47.5 kB / 476.5 MB, free: 9.023 MB / 382.1 MB Notification: Performance of pre-optimization done (n=105): time 3.206e-06/0.3636, allocations: 4 kB / 476.5 MB, free: 9.02 MB / 382.1 MB Notification: Performance of matching and sorting (n=122): time 0.015/0.3786, allocations: 6.066 MB / 482.5 MB, free: 2.93 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.534e-05/0.3787, allocations: 68.39 kB / 482.6 MB, free: 2.852 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002566/0.3813, allocations: 1.561 MB / 484.2 MB, free: 1.281 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001756/0.3814, allocations: 53.64 kB / 484.2 MB, free: 1.223 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009447/0.3824, allocations: 1.134 MB / 485.3 MB, free: 76 kB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004879/0.3829, allocations: 456.4 kB / 485.8 MB, free: 15.62 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004639/0.3833, allocations: 267.5 kB / 486.1 MB, free: 15.35 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001342/0.3835, allocations: 309.1 kB / 486.4 MB, free: 15.05 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001262/0.3847, allocations: 0.7105 MB / 487.1 MB, free: 14.34 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001651/0.3864, allocations: 1.142 MB / 488.2 MB, free: 13.01 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002998/0.3894, allocations: 1.967 MB / 490.2 MB, free: 10.86 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.094e-05/0.3894, allocations: 7.75 kB / 490.2 MB, free: 10.86 MB / 398.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004631/0.394, allocations: 2.436 MB / 492.6 MB, free: 8.402 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.248e-05/0.3941, allocations: 16.06 kB / 492.6 MB, free: 8.387 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.167e-05/0.3941, allocations: 12 kB / 492.6 MB, free: 8.375 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001044/0.3951, allocations: 419.1 kB / 493.1 MB, free: 7.953 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001274/0.3964, allocations: 355.4 kB / 493.4 MB, free: 7.605 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007849/0.4042, allocations: 6.821 MB / 0.4885 GB, free: 460 kB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001378/0.4056, allocations: 111.8 kB / 0.4886 GB, free: 348 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001306/0.4058, allocations: 64 kB / 0.4887 GB, free: 284 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.00137/0.4071, allocations: 0.7093 MB / 0.4894 GB, free: 15.55 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003809/0.4075, allocations: 186.8 kB / 0.4895 GB, free: 15.37 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004053/0.4116, allocations: 2.115 MB / 0.4916 GB, free: 13.23 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.531e-05/0.4116, allocations: 15.94 kB / 0.4916 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.4116, allocations: 4 kB / 0.4916 GB, free: 13.21 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.26e-05/0.4116, allocations: 3.984 kB / 0.4916 GB, free: 13.2 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00887/0.4205, allocations: 4.652 MB / 0.4962 GB, free: 8.434 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.077e-06/0.4205, allocations: 7.938 kB / 0.4962 GB, free: 8.426 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009823/0.4215, allocations: 215.7 kB / 0.4964 GB, free: 8.215 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001249/0.4227, allocations: 463.3 kB / 0.4968 GB, free: 7.75 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001321/0.4228, allocations: 31.98 kB / 0.4969 GB, free: 7.719 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009462/0.4323, allocations: 8.28 MB / 0.5049 GB, free: 14.98 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.4323, allocations: 11.94 kB / 0.5049 GB, free: 14.97 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005879/0.4382, allocations: 3.136 MB / 0.508 GB, free: 11.76 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001138/0.4393, allocations: 322.7 kB / 0.5083 GB, free: 11.44 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002993/0.4396, allocations: 35.98 kB / 0.5084 GB, free: 11.41 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009522/0.4406, allocations: 87.84 kB / 0.5084 GB, free: 11.32 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000261/0.4408, allocations: 100.7 kB / 0.5085 GB, free: 11.22 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.443e-05/0.4409, allocations: 43.98 kB / 0.5086 GB, free: 11.18 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001836/0.4428, allocations: 1.07 MB / 0.5096 GB, free: 10.11 MB / 430.1 MB Notification: Performance of sort global known variables: time 2.11e-07/0.4428, allocations: 0 / 0.5096 GB, free: 10.11 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001974/0.4447, allocations: 488.1 kB / 0.5101 GB, free: 9.637 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.005966/0.4507, allocations: 3.791 MB / 0.5138 GB, free: 5.758 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004142/0.4548, allocations: 2.15 MB / 0.5159 GB, free: 3.562 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.442e-06/0.4548, allocations: 1.812 kB / 0.5159 GB, free: 3.562 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002505/0.4574, allocations: 1.426 MB / 0.5173 GB, free: 2.086 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002413/0.4598, allocations: 482.1 kB / 0.5177 GB, free: 1.625 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03046/0.4902, allocations: 17.77 MB / 0.5351 GB, free: 15.14 MB / 462.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001883/0.4921, allocations: 1.864 MB / 0.5369 GB, free: 13.24 MB / 462.1 MB Notification: Performance of simCode: alias equations: time 0.001505/0.4936, allocations: 394.8 kB / 0.5373 GB, free: 12.85 MB / 462.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001366/0.495, allocations: 0.8742 MB / 0.5381 GB, free: 11.98 MB / 462.1 MB Notification: Performance of SimCode: time 1.553e-06/0.495, allocations: 0 / 0.5381 GB, free: 11.98 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.2924/0.7873, allocations: 46.68 MB / 0.5837 GB, free: 100.3 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.31/15.1, allocations: 9.75 kB / 0.5837 GB, free: 100.3 MB / 462.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMPM_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.83807102701394]