Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001303/0.001303, 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.001405/0.001405, 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.402/1.402, allocations: 225.7 MB / 253.3 MB, free: 13.04 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.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001608/0.001608, allocations: 43.92 kB / 371.2 MB, free: 9.941 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3119/0.3135, allocations: 52.19 MB / 423.4 MB, free: 14.62 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01368/0.3272, allocations: 9.721 MB / 433.2 MB, free: 4.863 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.008172/0.3353, allocations: 3.123 MB / 436.3 MB, free: 1.734 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001907/0.3372, allocations: 67.56 kB / 436.3 MB, free: 1.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001888/0.3391, allocations: 0.7104 MB / 437.1 MB, free: 0.9531 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002729/0.3419, allocations: 0.8155 MB / 437.9 MB, free: 136 kB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009929/0.3429, allocations: 399.4 kB / 438.3 MB, free: 15.74 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003394/0.3463, allocations: 2.541 MB / 440.8 MB, free: 13.19 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001907/0.3482, allocations: 1.303 MB / 442.1 MB, free: 11.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001932/0.3501, allocations: 1.215 MB / 443.3 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002768/0.3529, allocations: 1.534 MB / 444.9 MB, free: 9.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005767/0.3534, allocations: 323.9 kB / 445.2 MB, free: 8.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001032/0.3545, allocations: 423.8 kB / 445.6 MB, free: 8.336 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001081/0.3556, allocations: 0.9116 MB / 446.5 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001919/0.3575, allocations: 1.412 MB / 447.9 MB, free: 6.004 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004999/0.3625, allocations: 4.165 MB / 452.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.821e-06/0.3625, allocations: 0 / 452.1 MB, free: 1.824 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.823e-06/0.3625, allocations: 4 kB / 452.1 MB, free: 1.82 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.908e-05/0.3626, allocations: 0 / 452.1 MB, free: 1.82 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.006282/0.3689, allocations: 2.897 MB / 455 MB, free: 14.88 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.295e-05/0.3689, allocations: 8.031 kB / 455 MB, free: 14.87 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 5.995e-05/0.369, allocations: 56.41 kB / 455 MB, free: 14.81 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0003868/0.3693, allocations: 316.2 kB / 455.3 MB, free: 14.49 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006919/0.37, allocations: 303.2 kB / 455.6 MB, free: 14.19 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00261/0.3726, allocations: 1.475 MB / 457.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001295/0.3728, allocations: 160.2 kB / 457.3 MB, free: 12.51 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003112/0.3731, allocations: 212 kB / 457.5 MB, free: 12.3 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004476/0.3776, allocations: 2.799 MB / 460.3 MB, free: 9.418 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.555e-05/0.3776, allocations: 4 kB / 460.3 MB, free: 9.414 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001926/0.3778, allocations: 87.98 kB / 460.4 MB, free: 9.328 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001168/0.3779, allocations: 108.2 kB / 460.5 MB, free: 9.219 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004096/0.382, allocations: 2.355 MB / 462.8 MB, free: 6.848 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01391/0.3959, allocations: 8.351 MB / 471.2 MB, free: 14.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00227/0.3982, allocations: 1.197 MB / 472.4 MB, free: 13.04 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001702/0.3999, allocations: 0.8969 MB / 473.3 MB, free: 12.14 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002071/0.4001, allocations: 44.91 kB / 473.3 MB, free: 12.1 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.555e-05/0.4002, allocations: 51.55 kB / 473.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.484e-06/0.4002, allocations: 4 kB / 473.4 MB, free: 12.04 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01373/0.4139, allocations: 5.73 MB / 479.1 MB, free: 6.273 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.2e-05/0.4139, allocations: 68.41 kB / 479.2 MB, free: 6.195 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002487/0.4164, allocations: 1.437 MB / 480.6 MB, free: 4.746 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001133/0.4165, allocations: 45.7 kB / 480.6 MB, free: 4.695 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008781/0.4174, allocations: 1.063 MB / 481.7 MB, free: 3.621 MB / 382.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004345/0.4179, allocations: 428.3 kB / 482.1 MB, free: 3.199 MB / 382.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004879/0.4183, allocations: 255.5 kB / 482.4 MB, free: 2.941 MB / 382.1 MB Notification: Performance of setup shared object (initialization): time 0.0001915/0.4185, allocations: 353.9 kB / 482.7 MB, free: 2.59 MB / 382.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001282/0.4198, allocations: 0.6987 MB / 483.4 MB, free: 1.891 MB / 382.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001522/0.4213, allocations: 1.07 MB / 484.5 MB, free: 0.6641 MB / 382.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002853/0.4242, allocations: 1.868 MB / 486.4 MB, free: 14.63 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.181e-05/0.4242, allocations: 4 kB / 486.4 MB, free: 14.62 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004367/0.4286, allocations: 2.35 MB / 488.7 MB, free: 12.25 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.018e-05/0.4286, allocations: 11.94 kB / 488.7 MB, free: 12.24 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.378e-05/0.4286, allocations: 12 kB / 488.7 MB, free: 12.23 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001018/0.4296, allocations: 414.2 kB / 489.1 MB, free: 11.82 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001199/0.4308, allocations: 327.5 kB / 489.5 MB, free: 11.5 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007479/0.4383, allocations: 6.75 MB / 496.2 MB, free: 4.41 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001376/0.4397, allocations: 91.91 kB / 496.3 MB, free: 4.32 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002242/0.4399, allocations: 59.98 kB / 496.4 MB, free: 4.262 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 52 * 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 (157): * Single equations (assignments): 153 * 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,11,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.001408/0.4413, allocations: 0.6973 MB / 497.1 MB, free: 3.555 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004681/0.4418, allocations: 171 kB / 497.2 MB, free: 3.387 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003959/0.4458, allocations: 2.039 MB / 499.3 MB, free: 1.32 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.192e-05/0.4458, allocations: 12 kB / 499.3 MB, free: 1.309 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.511e-05/0.4458, allocations: 4 kB / 499.3 MB, free: 1.305 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.568e-05/0.4458, allocations: 7.969 kB / 499.3 MB, free: 1.297 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008506/0.4543, allocations: 4.448 MB / 0.4919 GB, free: 12.74 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.197e-06/0.4543, allocations: 4 kB / 0.4919 GB, free: 12.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009411/0.4553, allocations: 212.1 kB / 0.4921 GB, free: 12.53 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.4565, allocations: 454.7 kB / 0.4926 GB, free: 12.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.000105/0.4566, allocations: 35.92 kB / 0.4926 GB, free: 12.04 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008871/0.4654, allocations: 8.214 MB / 0.5006 GB, free: 3.363 MB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.669e-06/0.4654, allocations: 8 kB / 0.5006 GB, free: 3.355 MB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005468/0.4709, allocations: 3.021 MB / 0.5036 GB, free: 276 kB / 414.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009654/0.4719, allocations: 310.8 kB / 0.5039 GB, free: 15.96 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003946/0.4723, allocations: 39.98 kB / 0.5039 GB, free: 15.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001056/0.4733, allocations: 91.78 kB / 0.504 GB, free: 15.84 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002438/0.4736, allocations: 92.77 kB / 0.5041 GB, free: 15.75 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.857e-05/0.4737, allocations: 35.98 kB / 0.5041 GB, free: 15.71 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001796/0.4755, allocations: 0.9886 MB / 0.5051 GB, free: 14.72 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4755, allocations: 0 / 0.5051 GB, free: 14.72 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001877/0.4773, allocations: 463.9 kB / 0.5055 GB, free: 14.27 MB / 430.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 14 * Number of states: 7 (smr.inertiaRotor.w,smr.idq_sr[1],smr.idq_sr[2],smr.idq_dr[1],smr.idq_dr[2],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 (102): * Single equations (assignments): 98 * 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,11,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.005736/0.4831, allocations: 3.663 MB / 0.5091 GB, free: 10.52 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003879/0.487, allocations: 2.083 MB / 0.5111 GB, free: 8.398 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 8.496e-06/0.487, allocations: 4 kB / 0.5112 GB, free: 8.395 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002461/0.4894, allocations: 1.387 MB / 0.5125 GB, free: 6.957 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002336/0.4918, allocations: 416.7 kB / 0.5129 GB, free: 6.555 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.02926/0.521, allocations: 16.78 MB / 0.5293 GB, free: 5.117 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002039/0.5231, allocations: 1.796 MB / 0.531 GB, free: 3.289 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001075/0.5241, allocations: 365.6 kB / 0.5314 GB, free: 2.926 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001181/0.5253, allocations: 0.8195 MB / 0.5322 GB, free: 2.105 MB / 446.1 MB Notification: Performance of SimCode: time 7.22e-07/0.5253, allocations: 0 / 0.5322 GB, free: 2.105 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.29/0.8153, allocations: 43.31 MB / 0.5745 GB, free: 108.1 MB / 462.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.98/14.8, allocations: 7.062 kB / 0.5745 GB, free: 108.1 MB / 462.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.251719419960864]