Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_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.001911/0.001911, allocations: 113.2 kB / 20.43 MB, free: 1.449 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.002451/0.002451, allocations: 214.7 kB / 23.74 MB, free: 4.656 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.497/1.497, allocations: 230.6 MB / 257.5 MB, free: 8.016 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.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00178/0.00178, allocations: 51.92 kB / 377.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2809/0.2827, allocations: 53.36 MB / 431.1 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01341/0.2961, allocations: 9.769 MB / 440.9 MB, free: 13.04 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.007021/0.3031, allocations: 3.17 MB / 444.1 MB, free: 9.867 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001774/0.3049, allocations: 71.5 kB / 444.2 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002289/0.3072, allocations: 0.7183 MB / 444.9 MB, free: 9.074 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00341/0.3106, allocations: 0.8194 MB / 445.7 MB, free: 8.25 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001471/0.312, allocations: 395.3 kB / 446.1 MB, free: 7.863 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004241/0.3163, allocations: 2.571 MB / 448.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002862/0.3191, allocations: 1.303 MB / 450 MB, free: 3.918 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002478/0.3216, allocations: 1.227 MB / 451.2 MB, free: 2.688 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003013/0.3246, allocations: 1.537 MB / 452.7 MB, free: 1.145 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0009828/0.3256, allocations: 316 kB / 453 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001458/0.3271, allocations: 427.8 kB / 453.4 MB, free: 428 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001372/0.3285, allocations: 0.9154 MB / 454.4 MB, free: 15.5 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.002409/0.3309, allocations: 1.427 MB / 455.8 MB, free: 14.07 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.006349/0.3372, allocations: 4.177 MB / 460 MB, free: 9.875 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.432e-06/0.3372, allocations: 0 / 460 MB, free: 9.875 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.893e-06/0.3372, allocations: 0 / 460 MB, free: 9.875 MB / 366.1 MB Notification: Performance of Transformations before backend: time 0.0001628/0.3374, allocations: 0 / 460 MB, free: 9.875 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: 553 * Number of variables: 553 Notification: Performance of Generate backend data structure: time 0.008119/0.3455, allocations: 2.904 MB / 462.9 MB, free: 6.922 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.063e-05/0.3455, allocations: 12.03 kB / 462.9 MB, free: 6.91 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0008124/0.3464, allocations: 312.2 kB / 463.2 MB, free: 6.594 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001247/0.3476, allocations: 307.2 kB / 463.5 MB, free: 6.293 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003706/0.3513, allocations: 1.479 MB / 465 MB, free: 4.773 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000189/0.3515, allocations: 164.2 kB / 465.1 MB, free: 4.609 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0005808/0.3521, allocations: 211.9 kB / 465.3 MB, free: 4.402 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.006509/0.3586, allocations: 2.796 MB / 468.1 MB, free: 1.52 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.751e-05/0.3587, allocations: 8 kB / 468.1 MB, free: 1.512 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002851/0.359, allocations: 84 kB / 468.2 MB, free: 1.43 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001474/0.3591, allocations: 104.2 kB / 468.3 MB, free: 1.324 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004992/0.3641, allocations: 2.351 MB / 470.7 MB, free: 14.95 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01602/0.3801, allocations: 8.375 MB / 479 MB, free: 6.336 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002414/0.3825, allocations: 1.174 MB / 480.2 MB, free: 5.156 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001828/0.3844, allocations: 0.8968 MB / 481.1 MB, free: 4.262 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002498/0.3846, allocations: 52.95 kB / 481.2 MB, free: 4.211 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.823e-05/0.3847, allocations: 47.5 kB / 481.2 MB, free: 4.152 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 4.218e-06/0.3847, allocations: 0 / 481.2 MB, free: 4.152 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01392/0.3986, allocations: 5.729 MB / 486.9 MB, free: 14.38 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.37e-05/0.3986, allocations: 68.34 kB / 487 MB, free: 14.3 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002661/0.4013, allocations: 1.445 MB / 488.5 MB, free: 12.85 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001615/0.4015, allocations: 41.7 kB / 488.5 MB, free: 12.8 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009515/0.4024, allocations: 1.079 MB / 489.6 MB, free: 11.71 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004677/0.4029, allocations: 424.3 kB / 490 MB, free: 11.3 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004991/0.4034, allocations: 259.5 kB / 490.2 MB, free: 11.04 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.000202/0.4036, allocations: 361.9 kB / 490.6 MB, free: 10.68 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001263/0.4048, allocations: 0.6871 MB / 491.3 MB, free: 9.988 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001563/0.4064, allocations: 1.066 MB / 492.3 MB, free: 8.766 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002959/0.4094, allocations: 1.879 MB / 494.2 MB, free: 6.727 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.246e-05/0.4094, allocations: 4 kB / 494.2 MB, free: 6.723 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004577/0.414, allocations: 2.335 MB / 496.6 MB, free: 4.367 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.989e-05/0.414, allocations: 15.98 kB / 496.6 MB, free: 4.352 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.977e-05/0.414, allocations: 15.94 kB / 496.6 MB, free: 4.336 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.4151, allocations: 411.2 kB / 497 MB, free: 3.922 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001271/0.4164, allocations: 331.5 kB / 497.3 MB, free: 3.598 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.008163/0.4246, allocations: 6.735 MB / 0.4922 GB, free: 12.52 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001431/0.426, allocations: 103.9 kB / 0.4923 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002235/0.4262, allocations: 59.98 kB / 0.4924 GB, free: 12.36 MB / 414.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.001427/0.4276, allocations: 0.6888 MB / 0.4931 GB, free: 11.66 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004804/0.4281, allocations: 166.9 kB / 0.4932 GB, free: 11.5 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004179/0.4323, allocations: 2.044 MB / 0.4952 GB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.437e-05/0.4323, allocations: 15.94 kB / 0.4952 GB, free: 9.41 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.36e-05/0.4323, allocations: 8 kB / 0.4952 GB, free: 9.402 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.213e-05/0.4323, allocations: 3.984 kB / 0.4953 GB, free: 9.398 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008857/0.4412, allocations: 4.448 MB / 0.4996 GB, free: 4.848 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.251e-05/0.4412, allocations: 4 kB / 0.4996 GB, free: 4.844 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009702/0.4422, allocations: 215.7 kB / 0.4998 GB, free: 4.633 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001208/0.4434, allocations: 447.3 kB / 0.5002 GB, free: 4.184 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001146/0.4435, allocations: 35.98 kB / 0.5003 GB, free: 4.148 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009093/0.4526, allocations: 8.212 MB / 0.5083 GB, free: 11.48 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.483e-06/0.4526, allocations: 3.938 kB / 0.5083 GB, free: 11.47 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005427/0.458, allocations: 3.033 MB / 0.5113 GB, free: 8.367 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001045/0.4591, allocations: 318.7 kB / 0.5116 GB, free: 8.055 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003856/0.4595, allocations: 28 kB / 0.5116 GB, free: 8.027 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001058/0.4605, allocations: 87.83 kB / 0.5117 GB, free: 7.941 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002485/0.4608, allocations: 96.77 kB / 0.5118 GB, free: 7.848 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.023e-05/0.4608, allocations: 35.98 kB / 0.5118 GB, free: 7.812 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001942/0.4628, allocations: 0.9888 MB / 0.5128 GB, free: 6.824 MB / 430.1 MB Notification: Performance of sort global known variables: time 7e-08/0.4628, allocations: 0 / 0.5128 GB, free: 6.824 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001957/0.4647, allocations: 463.9 kB / 0.5132 GB, free: 6.371 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.005904/0.4706, allocations: 3.671 MB / 0.5168 GB, free: 2.621 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.004012/0.4747, allocations: 2.081 MB / 0.5188 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 6.512e-06/0.4747, allocations: 0 / 0.5188 GB, free: 0.5 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00251/0.4772, allocations: 1.389 MB / 0.5202 GB, free: 15.05 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002315/0.4795, allocations: 418.1 kB / 0.5206 GB, free: 14.66 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2284/0.7079, allocations: 16.79 MB / 0.537 GB, free: 99.94 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001535/0.7095, allocations: 1.81 MB / 0.5387 GB, free: 99.22 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001119/0.7106, allocations: 366.4 kB / 0.5391 GB, free: 99.2 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0009164/0.7115, allocations: 0.8165 MB / 0.5399 GB, free: 99.18 MB / 446.1 MB Notification: Performance of SimCode: time 1.242e-06/0.7115, allocations: 0 / 0.5399 GB, free: 99.18 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08461/0.7961, allocations: 43.4 MB / 0.5823 GB, free: 63.75 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.39/15.18, allocations: 15.89 kB / 0.5823 GB, free: 63.73 MB / 446.1 MB " [Timeout remaining time 645] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter_fmu --startTime=0 --stopTime=1.5 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Machines_Examples_SynchronousMachines_SMR_Inverter.fmu > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 19.840801673941314]