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.001586/0.001586, allocations: 112.2 kB / 21.22 MB, free: 0.7305 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.001885/0.001885, allocations: 212.2 kB / 24.53 MB, free: 4.07 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.367/1.367, allocations: 230.6 MB / 258.3 MB, free: 7.988 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="cs",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="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 43.92 kB / 378.6 MB, free: 3.105 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2396/0.241, allocations: 53.37 MB / 431.9 MB, free: 6.809 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01169/0.2527, allocations: 9.762 MB / 441.7 MB, free: 13.01 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.006169/0.2589, allocations: 3.182 MB / 444.9 MB, free: 9.82 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001436/0.2603, allocations: 71.5 kB / 445 MB, free: 9.75 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001804/0.2621, allocations: 0.7143 MB / 445.7 MB, free: 9.031 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002484/0.2646, allocations: 0.8155 MB / 446.5 MB, free: 8.211 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001154/0.2658, allocations: 395.4 kB / 446.9 MB, free: 7.824 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.003965/0.2697, allocations: 2.568 MB / 449.4 MB, free: 5.246 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001976/0.2717, allocations: 1.307 MB / 450.7 MB, free: 3.875 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002068/0.2738, allocations: 1.219 MB / 452 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002261/0.276, allocations: 1.541 MB / 453.5 MB, free: 1.105 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005537/0.2766, allocations: 320 kB / 453.8 MB, free: 0.793 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009697/0.2776, allocations: 419.8 kB / 454.2 MB, free: 392 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009852/0.2786, allocations: 0.9193 MB / 455.1 MB, free: 15.46 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001772/0.2803, allocations: 1.419 MB / 456.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004796/0.2851, allocations: 4.18 MB / 460.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.741e-06/0.2851, allocations: 0 / 460.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2851, allocations: 0 / 460.7 MB, free: 9.84 MB / 366.1 MB Notification: Performance of Transformations before backend: time 8.711e-05/0.2852, allocations: 4 kB / 460.8 MB, free: 9.836 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.00648/0.2917, allocations: 2.9 MB / 463.7 MB, free: 6.887 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.724e-05/0.2917, allocations: 8.031 kB / 463.7 MB, free: 6.879 MB / 366.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 6.617e-05/0.2918, allocations: 60.34 kB / 463.7 MB, free: 6.816 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0004393/0.2922, allocations: 316.2 kB / 464 MB, free: 6.496 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008615/0.2931, allocations: 311.1 kB / 464.3 MB, free: 6.191 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002735/0.2958, allocations: 1.479 MB / 465.8 MB, free: 4.672 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001307/0.296, allocations: 156.2 kB / 466 MB, free: 4.516 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000353/0.2963, allocations: 211.9 kB / 466.2 MB, free: 4.309 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004826/0.3012, allocations: 2.799 MB / 469 MB, free: 1.422 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.774e-05/0.3012, allocations: 4 kB / 469 MB, free: 1.418 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002019/0.3014, allocations: 84 kB / 469.1 MB, free: 1.336 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001246/0.3015, allocations: 108.2 kB / 469.2 MB, free: 1.227 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004144/0.3057, allocations: 2.355 MB / 471.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0152/0.3209, allocations: 8.359 MB / 479.9 MB, free: 6.25 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002411/0.3233, allocations: 1.19 MB / 481.1 MB, free: 5.051 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001787/0.3251, allocations: 0.89 MB / 482 MB, free: 4.164 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000254/0.3253, allocations: 60.88 kB / 482 MB, free: 4.105 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.146e-05/0.3254, allocations: 43.56 kB / 482.1 MB, free: 4.051 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 3.206e-06/0.3254, allocations: 0 / 482.1 MB, free: 4.051 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01383/0.3392, allocations: 5.734 MB / 487.8 MB, free: 14.28 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.644e-05/0.3393, allocations: 68.39 kB / 487.9 MB, free: 14.2 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002715/0.342, allocations: 1.441 MB / 489.3 MB, free: 12.75 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001123/0.3421, allocations: 45.7 kB / 489.3 MB, free: 12.7 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008441/0.3429, allocations: 1.063 MB / 490.4 MB, free: 11.62 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004115/0.3433, allocations: 440.2 kB / 490.8 MB, free: 11.19 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004542/0.3438, allocations: 255.5 kB / 491.1 MB, free: 10.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001805/0.344, allocations: 361.9 kB / 491.4 MB, free: 10.57 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001211/0.3452, allocations: 0.6871 MB / 492.1 MB, free: 9.887 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001477/0.3467, allocations: 1.07 MB / 493.2 MB, free: 8.66 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002775/0.3494, allocations: 1.864 MB / 495.1 MB, free: 6.637 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.243e-05/0.3495, allocations: 4 kB / 495.1 MB, free: 6.633 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004341/0.3538, allocations: 2.339 MB / 497.4 MB, free: 4.273 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.852e-05/0.3538, allocations: 11.94 kB / 497.4 MB, free: 4.262 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.488e-05/0.3539, allocations: 12 kB / 497.4 MB, free: 4.25 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001013/0.3549, allocations: 415.3 kB / 497.8 MB, free: 3.832 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001211/0.3561, allocations: 327.5 kB / 498.2 MB, free: 3.512 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007395/0.3635, allocations: 6.742 MB / 0.4931 GB, free: 12.42 MB / 414.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001343/0.3648, allocations: 99.84 kB / 0.4932 GB, free: 12.32 MB / 414.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0002012/0.365, allocations: 60 kB / 0.4932 GB, free: 12.27 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.001257/0.3663, allocations: 0.6968 MB / 0.4939 GB, free: 11.56 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004055/0.3667, allocations: 166.9 kB / 0.4941 GB, free: 11.39 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003876/0.3706, allocations: 2.047 MB / 0.4961 GB, free: 9.324 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.108e-05/0.3706, allocations: 15.92 kB / 0.4961 GB, free: 9.309 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.698e-06/0.3706, allocations: 4 kB / 0.4961 GB, free: 9.305 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.198e-05/0.3706, allocations: 8.078 kB / 0.4961 GB, free: 9.297 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.008769/0.3794, allocations: 4.46 MB / 0.5004 GB, free: 4.734 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.114e-05/0.3794, allocations: 4 kB / 0.5004 GB, free: 4.73 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009357/0.3803, allocations: 204.1 kB / 0.5006 GB, free: 4.531 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001163/0.3815, allocations: 459 kB / 0.5011 GB, free: 4.07 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001085/0.3816, allocations: 39.92 kB / 0.5011 GB, free: 4.031 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008847/0.3904, allocations: 8.195 MB / 0.5091 GB, free: 11.38 MB / 430.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/0.3904, allocations: 7.938 kB / 0.5091 GB, free: 11.37 MB / 430.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005437/0.3959, allocations: 3.033 MB / 0.5121 GB, free: 8.266 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009367/0.3968, allocations: 314.8 kB / 0.5124 GB, free: 7.957 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003714/0.3972, allocations: 28 kB / 0.5124 GB, free: 7.93 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001093/0.3983, allocations: 87.94 kB / 0.5125 GB, free: 7.844 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002766/0.3986, allocations: 100.7 kB / 0.5126 GB, free: 7.746 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.838e-05/0.3987, allocations: 36 kB / 0.5126 GB, free: 7.711 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.002045/0.4007, allocations: 0.9888 MB / 0.5136 GB, free: 6.723 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4007, allocations: 8 kB / 0.5136 GB, free: 6.715 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.002166/0.4029, allocations: 463.9 kB / 0.514 GB, free: 6.262 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.006004/0.4089, allocations: 3.659 MB / 0.5176 GB, free: 2.523 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003854/0.4127, allocations: 2.075 MB / 0.5196 GB, free: 420 kB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 1.048e-05/0.4127, allocations: 8.375 kB / 0.5196 GB, free: 412 kB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002412/0.4151, allocations: 1.391 MB / 0.521 GB, free: 14.96 MB / 446.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00239/0.4175, allocations: 430 kB / 0.5214 GB, free: 14.55 MB / 446.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.2163/0.6339, allocations: 16.77 MB / 0.5378 GB, free: 99.98 MB / 446.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001414/0.6353, allocations: 1.812 MB / 0.5396 GB, free: 99.26 MB / 446.1 MB Notification: Performance of simCode: alias equations: time 0.001074/0.6363, allocations: 368 kB / 0.5399 GB, free: 99.24 MB / 446.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008187/0.6372, allocations: 0.8158 MB / 0.5407 GB, free: 99.21 MB / 446.1 MB Notification: Performance of SimCode: time 1.062e-06/0.6372, allocations: 0 / 0.5407 GB, free: 99.21 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07604/0.7132, allocations: 43.43 MB / 0.5831 GB, free: 63.74 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 14.06/14.78, allocations: 19.7 kB / 0.5831 GB, free: 63.72 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 658] Reference file matches [Calling sys.exit(0), Time elapsed: 21.097214576031547]