Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.002137/0.002137, allocations: 84 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.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.002503/0.002503, allocations: 167.6 kB / 23.95 MB, free: 4.16 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.462/1.462, allocations: 177.1 MB / 204.3 MB, free: 9.168 MB / 190.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: translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.1.|smpm.is.2.|smpm.idq_dr.1.|smpm.idq_rr.2.|smpm.idq_sr.1.|smpm.idq_sr.2.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.302e-06/1.302e-06, allocations: 0 / 325.1 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.991e-05/2.121e-05, allocations: 2.281 kB / 325.1 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.0123/0.01232, allocations: 9.167 MB / 334.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.007606/0.01993, allocations: 3.296 MB / 337.5 MB, free: 7.633 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001503/0.02143, allocations: 75 kB / 337.6 MB, free: 7.602 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002065/0.0235, allocations: 0.7654 MB / 338.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002691/0.02619, allocations: 0.9209 MB / 339.3 MB, free: 6.254 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000982/0.02717, allocations: 431.9 kB / 339.7 MB, free: 5.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.004344/0.03151, allocations: 2.853 MB / 342.6 MB, free: 3.586 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002114/0.03363, allocations: 1.309 MB / 343.9 MB, free: 2.211 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00281/0.03644, allocations: 1.902 MB / 345.8 MB, free: 312 kB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00212/0.03856, allocations: 1.364 MB / 347.2 MB, free: 14.94 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0005028/0.03906, allocations: 332 kB / 347.5 MB, free: 14.61 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008591/0.03992, allocations: 431.8 kB / 347.9 MB, free: 14.19 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.001072/0.04099, allocations: 0.9777 MB / 348.9 MB, free: 13.21 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001324/0.04232, allocations: 1.033 MB / 349.9 MB, free: 12.18 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004975/0.04729, allocations: 4.456 MB / 354.4 MB, free: 7.707 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.0473, allocations: 0 / 354.4 MB, free: 7.707 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.693e-06/0.0473, allocations: 0 / 354.4 MB, free: 7.707 MB / 318.1 MB Notification: Performance of Transformations before backend: time 4.469e-05/0.04734, allocations: 0 / 354.4 MB, free: 7.707 MB / 318.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 581 * Number of variables: 581 Notification: Performance of Generate backend data structure: time 0.006081/0.05342, allocations: 3.041 MB / 357.4 MB, free: 4.617 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.711e-05/0.05348, allocations: 8.031 kB / 357.4 MB, free: 4.609 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009832/0.05446, allocations: 327 kB / 357.7 MB, free: 4.289 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00279/0.05725, allocations: 1.562 MB / 359.3 MB, free: 2.684 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001522/0.05741, allocations: 164.8 kB / 359.5 MB, free: 2.52 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003489/0.05776, allocations: 220.4 kB / 359.7 MB, free: 2.305 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00507/0.06283, allocations: 3.025 MB / 362.7 MB, free: 15.17 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.515e-05/0.06288, allocations: 3.953 kB / 362.7 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002262/0.06311, allocations: 91.98 kB / 362.8 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001399/0.06325, allocations: 116.3 kB / 362.9 MB, free: 14.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.004473/0.06772, allocations: 2.43 MB / 365.3 MB, free: 12.51 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01343/0.08115, allocations: 7.835 MB / 373.2 MB, free: 4.418 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002337/0.08349, allocations: 1.178 MB / 374.3 MB, free: 3.234 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001874/0.08536, allocations: 0.9248 MB / 375.3 MB, free: 2.305 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000226/0.08559, allocations: 52.97 kB / 375.3 MB, free: 2.254 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.295e-05/0.08563, allocations: 47.55 kB / 375.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of pre-optimization done (n=105): time 2.995e-06/0.08563, allocations: 0 / 375.4 MB, free: 2.195 MB / 334.1 MB Notification: Performance of matching and sorting (n=122): time 0.01513/0.1008, allocations: 6.047 MB / 381.4 MB, free: 12.12 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.134e-05/0.1008, allocations: 68.34 kB / 381.5 MB, free: 12.04 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002143/0.103, allocations: 1.425 MB / 382.9 MB, free: 10.61 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.599e-05/0.1031, allocations: 45.7 kB / 383 MB, free: 10.55 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009063/0.104, allocations: 1.137 MB / 384.1 MB, free: 9.406 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003899/0.1044, allocations: 448.2 kB / 384.5 MB, free: 8.965 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004602/0.1048, allocations: 275.4 kB / 384.8 MB, free: 8.691 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000128/0.1049, allocations: 301.1 kB / 385.1 MB, free: 8.395 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001303/0.1062, allocations: 0.7144 MB / 385.8 MB, free: 7.68 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00173/0.108, allocations: 1.138 MB / 386.9 MB, free: 6.363 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003179/0.1112, allocations: 1.967 MB / 388.9 MB, free: 4.215 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.528e-06/0.1112, allocations: 4 kB / 388.9 MB, free: 4.211 MB / 350.1 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.004863/0.116, allocations: 2.432 MB / 391.3 MB, free: 1.758 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.1161, allocations: 12 kB / 391.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.152e-05/0.1161, allocations: 12 kB / 391.4 MB, free: 1.734 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001096/0.1172, allocations: 426.5 kB / 391.8 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.1185, allocations: 355.4 kB / 392.1 MB, free: 0.9609 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00778/0.1263, allocations: 6.69 MB / 398.8 MB, free: 9.957 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001305/0.1276, allocations: 107.8 kB / 398.9 MB, free: 9.852 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001258/0.1278, allocations: 64 kB / 399 MB, free: 9.789 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * 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 (169): * Single equations (assignments): 165 * 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,12,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.00127/0.129, allocations: 0.7155 MB / 399.7 MB, free: 9.066 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002967/0.1293, allocations: 166.9 kB / 399.9 MB, free: 8.902 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004045/0.1334, allocations: 2.11 MB / 402 MB, free: 6.77 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.227e-05/0.1334, allocations: 12 kB / 402 MB, free: 6.758 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.127e-06/0.1334, allocations: 4 kB / 402 MB, free: 6.754 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.498e-05/0.1334, allocations: 7.969 kB / 402 MB, free: 6.746 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007725/0.1411, allocations: 4.122 MB / 406.1 MB, free: 2.504 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.596e-06/0.1411, allocations: 4 kB / 406.1 MB, free: 2.5 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001028/0.1422, allocations: 227.7 kB / 406.4 MB, free: 2.277 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001254/0.1434, allocations: 454.5 kB / 406.8 MB, free: 1.824 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.444e-05/0.1435, allocations: 32.08 kB / 406.8 MB, free: 1.793 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.009008/0.1525, allocations: 8.128 MB / 415 MB, free: 9.258 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.1525, allocations: 4 kB / 415 MB, free: 9.254 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005566/0.1581, allocations: 3.12 MB / 418.1 MB, free: 6.062 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008542/0.1589, allocations: 306.8 kB / 418.4 MB, free: 5.762 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002946/0.1592, allocations: 31.98 kB / 418.4 MB, free: 5.73 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009942/0.1602, allocations: 91.91 kB / 418.5 MB, free: 5.641 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002625/0.1605, allocations: 100.7 kB / 418.6 MB, free: 5.543 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.332e-05/0.1606, allocations: 39.94 kB / 418.6 MB, free: 5.504 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.001682/0.1623, allocations: 0.9535 MB / 419.6 MB, free: 4.551 MB / 382.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1623, allocations: 0 / 419.6 MB, free: 4.551 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.001876/0.1642, allocations: 487.9 kB / 420.1 MB, free: 4.074 MB / 382.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 7 (smpm.inertiaRotor.w,smpm.idq_sr[1],smpm.idq_sr[2],smpm.idq_rr[2],smpm.idq_dr[1],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 (107): * Single equations (assignments): 103 * 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,12,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.0004676/0.1646, allocations: 210.4 kB / 420.3 MB, free: 3.859 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.004251/0.1689, allocations: 2.152 MB / 422.4 MB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.262e-06/0.1689, allocations: 0 / 422.4 MB, free: 1.672 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.002705/0.1716, allocations: 1.415 MB / 423.8 MB, free: 208 kB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002334/0.1739, allocations: 426.8 kB / 424.3 MB, free: 15.8 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.008609/0.1825, allocations: 4.565 MB / 428.8 MB, free: 11.15 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001876/0.1844, allocations: 1.309 MB / 430.1 MB, free: 9.801 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.001221/0.1856, allocations: 361.7 kB / 430.5 MB, free: 9.441 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004512/0.1861, allocations: 116.5 kB / 430.6 MB, free: 9.328 MB / 398.1 MB Notification: Performance of SimCode: time 1.233e-06/0.1861, allocations: 8 kB / 430.6 MB, free: 9.32 MB / 398.1 MB Notification: Performance of Templates: time 0.04711/0.2332, allocations: 25.42 MB / 456 MB, free: 204 kB / 414.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.446344118565321]