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.001439/0.001439, allocations: 82.98 kB / 20.68 MB, free: 1.023 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.001351/0.001351, allocations: 145 kB / 23.93 MB, free: 4.168 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.4/1.4, allocations: 173.3 MB / 200.4 MB, free: 12.87 MB / 190.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smr.is.1.|smr.is.2.|smr.idq_rr.1.|smr.idq_rr.2.|smr.idq_sr.1.|smr.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.182e-06/1.182e-06, allocations: 0 / 318.9 MB, free: 3.543 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.928e-05/2.046e-05, allocations: 14.28 kB / 318.9 MB, free: 3.531 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.009285/0.009306, allocations: 8.518 MB / 327.5 MB, free: 13.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.006515/0.01582, allocations: 2.933 MB / 330.4 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001659/0.01748, allocations: 70.94 kB / 330.5 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001721/0.0192, allocations: 0.6747 MB / 331.1 MB, free: 11.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002423/0.02162, allocations: 0.8358 MB / 332 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009385/0.02256, allocations: 396.2 kB / 332.4 MB, free: 10.69 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.003007/0.02557, allocations: 2.647 MB / 335 MB, free: 9.176 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001819/0.02739, allocations: 1.259 MB / 336.3 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002386/0.02977, allocations: 1.767 MB / 338 MB, free: 7.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.03204, allocations: 1.291 MB / 339.3 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.000458/0.0325, allocations: 317.3 kB / 339.6 MB, free: 6.445 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008963/0.03339, allocations: 419.2 kB / 340 MB, free: 6.391 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001046/0.03444, allocations: 0.9367 MB / 341 MB, free: 5.516 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00133/0.03577, allocations: 0.9705 MB / 342 MB, free: 4.543 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004643/0.04041, allocations: 4.21 MB / 346.2 MB, free: 324 kB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.938e-06/0.04042, allocations: 0 / 346.2 MB, free: 324 kB / 302.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.04042, allocations: 0 / 346.2 MB, free: 324 kB / 302.1 MB Notification: Performance of Transformations before backend: time 5.301e-05/0.04047, allocations: 4 kB / 346.2 MB, free: 320 kB / 302.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.00585/0.04632, allocations: 2.862 MB / 349 MB, free: 13.4 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.569e-05/0.04637, allocations: 8.922 kB / 349 MB, free: 13.39 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007732/0.04714, allocations: 311.2 kB / 349.3 MB, free: 13.09 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002732/0.04987, allocations: 1.474 MB / 350.8 MB, free: 11.57 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001426/0.05001, allocations: 156.6 kB / 351 MB, free: 11.41 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003561/0.05037, allocations: 216.3 kB / 351.2 MB, free: 11.2 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004986/0.05536, allocations: 2.904 MB / 354.1 MB, free: 8.184 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.326e-05/0.05541, allocations: 4 kB / 354.1 MB, free: 8.18 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002181/0.05563, allocations: 84 kB / 354.2 MB, free: 8.098 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001319/0.05576, allocations: 112.2 kB / 354.3 MB, free: 7.984 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004302/0.06006, allocations: 2.343 MB / 356.6 MB, free: 5.625 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01311/0.07317, allocations: 7.374 MB / 364 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002432/0.0756, allocations: 1.19 MB / 365.2 MB, free: 12.82 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001858/0.07746, allocations: 0.8939 MB / 366.1 MB, free: 11.92 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002278/0.07769, allocations: 56.94 kB / 366.1 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.27e-05/0.07773, allocations: 43.56 kB / 366.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of pre-optimization done (n=101): time 3.517e-06/0.07773, allocations: 0 / 366.2 MB, free: 11.81 MB / 334.1 MB Notification: Performance of matching and sorting (n=116): time 0.01457/0.09231, allocations: 5.701 MB / 371.9 MB, free: 6.078 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.215e-05/0.09237, allocations: 68.34 kB / 371.9 MB, free: 6 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002533/0.0949, allocations: 1.301 MB / 373.2 MB, free: 4.691 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001137/0.09501, allocations: 45.7 kB / 373.3 MB, free: 4.641 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000941/0.09596, allocations: 1.063 MB / 374.4 MB, free: 3.566 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004564/0.09641, allocations: 428.4 kB / 374.8 MB, free: 3.145 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005085/0.09692, allocations: 255.4 kB / 375 MB, free: 2.891 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002153/0.09714, allocations: 361.9 kB / 375.4 MB, free: 2.531 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001352/0.09849, allocations: 0.691 MB / 376.1 MB, free: 1.84 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001597/0.1001, allocations: 1.074 MB / 377.1 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003055/0.1031, allocations: 1.856 MB / 379 MB, free: 14.59 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.06e-05/0.1032, allocations: 4 kB / 379 MB, free: 14.59 MB / 350.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004451/0.1076, allocations: 2.335 MB / 381.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.31e-05/0.1076, allocations: 8 kB / 381.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.589e-05/0.1077, allocations: 12 kB / 381.4 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.00106/0.1087, allocations: 422.6 kB / 381.8 MB, free: 11.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.11, allocations: 327.5 kB / 382.1 MB, free: 11.47 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.007656/0.1177, allocations: 6.616 MB / 388.7 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001193/0.1189, allocations: 107.9 kB / 388.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001304/0.119, allocations: 55.98 kB / 388.9 MB, free: 4.387 MB / 350.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.001239/0.1202, allocations: 0.6934 MB / 389.6 MB, free: 3.684 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003654/0.1206, allocations: 151 kB / 389.7 MB, free: 3.535 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004065/0.1247, allocations: 2.027 MB / 391.7 MB, free: 1.484 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.471e-05/0.1247, allocations: 15.98 kB / 391.7 MB, free: 1.469 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.101e-05/0.1247, allocations: 7.938 kB / 391.8 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.559e-05/0.1247, allocations: 7.969 kB / 391.8 MB, free: 1.453 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007663/0.1324, allocations: 3.938 MB / 395.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.168e-05/0.1324, allocations: 8 kB / 395.7 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009529/0.1333, allocations: 219.6 kB / 395.9 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001205/0.1345, allocations: 439 kB / 396.4 MB, free: 12.75 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001033/0.1347, allocations: 35.98 kB / 396.4 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008709/0.1434, allocations: 8.048 MB / 404.4 MB, free: 4.266 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.628e-06/0.1434, allocations: 11.97 kB / 404.4 MB, free: 4.254 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005233/0.1486, allocations: 3.009 MB / 407.5 MB, free: 1.184 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007295/0.1493, allocations: 298.8 kB / 407.7 MB, free: 0.8906 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002621/0.1496, allocations: 28 kB / 407.8 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009363/0.1505, allocations: 83.91 kB / 407.9 MB, free: 0.7812 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002383/0.1508, allocations: 104.7 kB / 408 MB, free: 0.6797 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.909e-05/0.1509, allocations: 35.94 kB / 408 MB, free: 0.6445 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.001363/0.1522, allocations: 0.8757 MB / 408.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of sort global known variables: time 9e-08/0.1522, allocations: 0 / 408.9 MB, free: 15.77 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001639/0.1539, allocations: 452 kB / 409.3 MB, free: 15.32 MB / 382.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.0004185/0.1543, allocations: 202.8 kB / 409.5 MB, free: 15.12 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.003849/0.1581, allocations: 2.079 MB / 411.6 MB, free: 13 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 4.448e-06/0.1581, allocations: 0 / 411.6 MB, free: 13 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002458/0.1606, allocations: 1.388 MB / 413 MB, free: 11.55 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00182/0.1624, allocations: 359.5 kB / 413.3 MB, free: 11.21 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00752/0.1699, allocations: 4.328 MB / 417.7 MB, free: 6.805 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001494/0.1714, allocations: 1.231 MB / 418.9 MB, free: 5.531 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.001063/0.1725, allocations: 352.4 kB / 419.2 MB, free: 5.18 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003539/0.1728, allocations: 108.5 kB / 419.3 MB, free: 5.074 MB / 382.1 MB Notification: Performance of SimCode: time 9.92e-07/0.1728, allocations: 0 / 419.3 MB, free: 5.074 MB / 382.1 MB Notification: Performance of Templates: time 0.04165/0.2145, allocations: 23.15 MB / 442.5 MB, free: 14.22 MB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.makefile [Timeout 660] (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 & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMR_Inverter/SMR_Inverter.csv","/var/lib/jenkins/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.269365921616554]