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.00129/0.00129, allocations: 72.06 kB / 21.24 MB, free: 400 kB / 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.001315/0.001315, allocations: 161.4 kB / 24.49 MB, free: 3.461 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.46/1.46, allocations: 173.4 MB / 201.1 MB, free: 12.65 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 0.001561/0.001561, allocations: 51.19 kB / 319.4 MB, free: 3.266 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08526/0.08682, allocations: 52.16 MB / 371.6 MB, free: 7.34 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMR_Inverter): time 0.01096/0.09779, allocations: 8.54 MB / 380.1 MB, free: 14.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.005126/0.1029, allocations: 2.921 MB / 383 MB, free: 11.84 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006266/0.1035, allocations: 71.5 kB / 383.1 MB, free: 11.77 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001455/0.105, allocations: 0.6559 MB / 383.8 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001823/0.1068, allocations: 0.8194 MB / 384.6 MB, free: 10.28 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007744/0.1076, allocations: 399.3 kB / 385 MB, free: 9.895 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002587/0.1102, allocations: 2.533 MB / 387.5 MB, free: 7.352 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001711/0.1119, allocations: 1.253 MB / 388.8 MB, free: 6.035 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001359/0.1133, allocations: 1.215 MB / 390 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001999/0.1153, allocations: 1.444 MB / 391.4 MB, free: 3.367 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0004278/0.1157, allocations: 316 kB / 391.7 MB, free: 3.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007321/0.1164, allocations: 411.8 kB / 392.1 MB, free: 2.656 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009273/0.1173, allocations: 0.9154 MB / 393 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001211/0.1185, allocations: 1.147 MB / 394.2 MB, free: 0.5859 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004174/0.1227, allocations: 4.184 MB / 398.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.226e-06/0.1227, allocations: 0 / 398.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of FrontEnd: time 1.142e-06/0.1227, allocations: 0 / 398.4 MB, free: 12.39 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.629e-05/0.1228, allocations: 0 / 398.4 MB, free: 12.39 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.005614/0.1284, allocations: 2.904 MB / 401.3 MB, free: 9.434 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.293e-05/0.1284, allocations: 8.922 kB / 401.3 MB, free: 9.426 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007141/0.1291, allocations: 303.2 kB / 401.6 MB, free: 9.129 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002816/0.132, allocations: 1.471 MB / 403.1 MB, free: 7.613 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001536/0.1321, allocations: 168.3 kB / 403.2 MB, free: 7.445 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003233/0.1324, allocations: 208 kB / 403.4 MB, free: 7.242 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004733/0.1372, allocations: 2.9 MB / 406.3 MB, free: 4.23 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.949e-05/0.1372, allocations: 8 kB / 406.3 MB, free: 4.223 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002026/0.1374, allocations: 83.98 kB / 406.4 MB, free: 4.141 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001224/0.1376, allocations: 108.2 kB / 406.5 MB, free: 4.031 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004146/0.1417, allocations: 2.343 MB / 408.9 MB, free: 1.672 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01244/0.1541, allocations: 7.382 MB / 416.2 MB, free: 10.05 MB / 382.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00236/0.1565, allocations: 1.186 MB / 417.4 MB, free: 8.859 MB / 382.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001764/0.1583, allocations: 0.8928 MB / 418.3 MB, free: 7.969 MB / 382.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002198/0.1585, allocations: 48.97 kB / 418.4 MB, free: 7.922 MB / 382.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.795e-05/0.1585, allocations: 43.56 kB / 418.4 MB, free: 7.867 MB / 382.1 MB Notification: Performance of pre-optimization done (n=101): time 2.885e-06/0.1585, allocations: 4 kB / 418.4 MB, free: 7.863 MB / 382.1 MB Notification: Performance of matching and sorting (n=116): time 0.01335/0.1719, allocations: 5.726 MB / 424.1 MB, free: 2.102 MB / 382.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.861e-05/0.1719, allocations: 64.41 kB / 424.2 MB, free: 2.027 MB / 382.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001831/0.1738, allocations: 1.297 MB / 425.5 MB, free: 0.7227 MB / 382.1 MB Notification: Performance of collectPreVariables (initialization): time 7.884e-05/0.1738, allocations: 45.7 kB / 425.6 MB, free: 0.6719 MB / 382.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008168/0.1747, allocations: 1.071 MB / 426.6 MB, free: 15.59 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003536/0.175, allocations: 428.3 kB / 427 MB, free: 15.16 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004254/0.1754, allocations: 259.5 kB / 427.3 MB, free: 14.9 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.1756, allocations: 357.9 kB / 427.6 MB, free: 14.55 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001203/0.1768, allocations: 0.6948 MB / 428.3 MB, free: 13.85 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001508/0.1783, allocations: 1.074 MB / 429.4 MB, free: 12.62 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002845/0.1812, allocations: 1.868 MB / 431.3 MB, free: 10.59 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.804e-06/0.1812, allocations: 4 kB / 431.3 MB, free: 10.59 MB / 398.1 MB Notification: Performance of matching and sorting (n=178) (initialization): time 0.004124/0.1853, allocations: 2.323 MB / 433.6 MB, free: 8.242 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.564e-05/0.1853, allocations: 12 kB / 433.6 MB, free: 8.23 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.672e-05/0.1853, allocations: 12.25 kB / 433.6 MB, free: 8.219 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009868/0.1863, allocations: 415 kB / 434 MB, free: 7.801 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001258/0.1876, allocations: 335.5 kB / 434.4 MB, free: 7.473 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0072/0.1948, allocations: 6.616 MB / 441 MB, free: 0.5508 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001123/0.1959, allocations: 99.84 kB / 441.1 MB, free: 464 kB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001068/0.196, allocations: 56 kB / 441.1 MB, free: 408 kB / 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.001149/0.1972, allocations: 0.6934 MB / 441.8 MB, free: 15.7 MB / 414.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002589/0.1974, allocations: 155 kB / 442 MB, free: 15.54 MB / 414.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.003798/0.2012, allocations: 2.034 MB / 444 MB, free: 13.48 MB / 414.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.207e-05/0.2012, allocations: 12 kB / 444 MB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.596e-06/0.2012, allocations: 4 kB / 444 MB, free: 13.47 MB / 414.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.175e-05/0.2013, allocations: 3.984 kB / 444 MB, free: 13.46 MB / 414.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007128/0.2084, allocations: 3.946 MB / 448 MB, free: 9.426 MB / 414.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.604e-06/0.2084, allocations: 3.984 kB / 448 MB, free: 9.422 MB / 414.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009176/0.2093, allocations: 203.7 kB / 448.2 MB, free: 9.223 MB / 414.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001115/0.2104, allocations: 455.2 kB / 448.6 MB, free: 8.77 MB / 414.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.505e-05/0.2105, allocations: 39.98 kB / 448.7 MB, free: 8.73 MB / 414.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.008274/0.2188, allocations: 8.061 MB / 456.7 MB, free: 264 kB / 414.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.275e-06/0.2188, allocations: 8 kB / 456.7 MB, free: 256 kB / 414.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.004858/0.2236, allocations: 3.02 MB / 459.8 MB, free: 13.16 MB / 430.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006832/0.2243, allocations: 286.9 kB / 460 MB, free: 12.88 MB / 430.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001719/0.2245, allocations: 39.92 kB / 460.1 MB, free: 12.84 MB / 430.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008273/0.2253, allocations: 79.91 kB / 460.1 MB, free: 12.77 MB / 430.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001966/0.2255, allocations: 92.77 kB / 460.2 MB, free: 12.68 MB / 430.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.278e-05/0.2256, allocations: 39.98 kB / 460.3 MB, free: 12.64 MB / 430.1 MB Notification: Performance of sorting global known variables: time 0.001247/0.2269, allocations: 0.8795 MB / 461.2 MB, free: 11.75 MB / 430.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2269, allocations: 3.938 kB / 461.2 MB, free: 11.75 MB / 430.1 MB Notification: Performance of remove unused functions: time 0.001471/0.2283, allocations: 455.9 kB / 461.6 MB, free: 11.3 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.0003332/0.2287, allocations: 190.9 kB / 461.8 MB, free: 11.11 MB / 430.1 MB Notification: Performance of simCode: created initialization part: time 0.003549/0.2322, allocations: 2.087 MB / 463.9 MB, free: 8.984 MB / 430.1 MB Notification: Performance of simCode: created event and clocks part: time 5.21e-06/0.2322, allocations: 4 kB / 463.9 MB, free: 8.98 MB / 430.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002333/0.2345, allocations: 1.388 MB / 465.3 MB, free: 7.539 MB / 430.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001531/0.2361, allocations: 360.4 kB / 465.6 MB, free: 7.191 MB / 430.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006738/0.2428, allocations: 4.499 MB / 470.1 MB, free: 2.621 MB / 430.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001462/0.2443, allocations: 1.227 MB / 471.3 MB, free: 1.348 MB / 430.1 MB Notification: Performance of simCode: alias equations: time 0.0008673/0.2451, allocations: 348.5 kB / 471.7 MB, free: 1 MB / 430.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000313/0.2455, allocations: 108.5 kB / 471.8 MB, free: 0.8945 MB / 430.1 MB Notification: Performance of SimCode: time 4.41e-07/0.2455, allocations: 4 kB / 471.8 MB, free: 0.8906 MB / 430.1 MB Notification: Performance of Templates: time 0.2248/0.4703, allocations: 23.28 MB / 495.1 MB, free: 80.38 MB / 430.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 -s ida -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/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 660] Reference file matches [Calling sys.exit(0), Time elapsed: 5.470497382921167]