Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_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.001289/0.001289, allocations: 85.05 kB / 21.5 MB, free: 2.988 MB / 18.57 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.001475/0.001475, allocations: 140.3 kB / 24.89 MB, free: 9.207 MB / 18.57 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.044/1.044, allocations: 173.3 MB / 201.5 MB, free: 9.172 MB / 186.7 MB " [Timeout remaining time 179] 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.SMPM_Inverter,tolerance=1e-06,outputFormat="mat",numberOfIntervals=15000,variableFilter="time|loadInertia.phi|loadInertia.w|smpm.is.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.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.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.152e-06/1.152e-06, allocations: 0 / 268.5 MB, free: 6.109 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.191e-05/1.307e-05, allocations: 2.312 kB / 268.5 MB, free: 6.105 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008544/0.008557, allocations: 10.01 MB / 278.5 MB, free: 12.04 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005813/0.01437, allocations: 3.473 MB / 282 MB, free: 8.559 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006902/0.01506, allocations: 71.5 kB / 282.1 MB, free: 8.488 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001344/0.0164, allocations: 0.7684 MB / 282.8 MB, free: 7.715 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001567/0.01797, allocations: 0.9273 MB / 283.8 MB, free: 6.781 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008476/0.01882, allocations: 427.3 kB / 284.2 MB, free: 6.363 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002175/0.02099, allocations: 2.851 MB / 287 MB, free: 3.504 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001402/0.0224, allocations: 1.344 MB / 288.4 MB, free: 2.074 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1018/0.1242, allocations: 2.121 MB / 290.5 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002158/0.1263, allocations: 1.384 MB / 291.9 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008217/0.1271, allocations: 322.8 kB / 292.2 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000808/0.1279, allocations: 428.6 kB / 292.6 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006214/0.1286, allocations: 0.9369 MB / 293.6 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001346/0.1299, allocations: 1.016 MB / 294.6 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002339/0.1323, allocations: 2.366 MB / 296.9 MB, free: 17.39 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.389e-06/0.1323, allocations: 1.547 kB / 296.9 MB, free: 17.39 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.132e-06/0.1323, allocations: 1.406 kB / 296.9 MB, free: 17.39 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.013e-05/0.1323, allocations: 0.6875 kB / 297 MB, free: 17.39 MB / 266.7 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.003177/0.1355, allocations: 2.803 MB / 299.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.624e-05/0.1355, allocations: 11.52 kB / 299.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006812/0.1362, allocations: 403.8 kB / 300.2 MB, free: 16.18 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001376/0.1376, allocations: 1.153 MB / 301.3 MB, free: 15.73 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.32e-05/0.1377, allocations: 170 kB / 301.5 MB, free: 15.72 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002184/0.1379, allocations: 224.9 kB / 301.7 MB, free: 15.71 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001764/0.1396, allocations: 1.695 MB / 303.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.188e-05/0.1397, allocations: 7.391 kB / 303.4 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000129/0.1398, allocations: 88.5 kB / 303.5 MB, free: 15.36 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.275e-05/0.1399, allocations: 115.3 kB / 303.6 MB, free: 15.35 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009154/0.1408, allocations: 0.6552 MB / 304.3 MB, free: 15.26 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005257/0.1461, allocations: 5.863 MB / 310.1 MB, free: 12.24 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006789/0.1467, allocations: 0.6541 MB / 310.8 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004893/0.1472, allocations: 440.7 kB / 311.2 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000148/0.1474, allocations: 59.48 kB / 311.3 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.235e-05/0.1474, allocations: 46.09 kB / 311.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 3.116e-06/0.1474, allocations: 0 / 311.3 MB, free: 11.9 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.003834/0.1512, allocations: 2.569 MB / 313.9 MB, free: 10.3 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.792e-05/0.1512, allocations: 64.41 kB / 313.9 MB, free: 10.23 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005864/0.1518, allocations: 1.058 MB / 315 MB, free: 9.348 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.742e-05/0.1519, allocations: 45.7 kB / 315 MB, free: 9.297 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002219/0.1521, allocations: 0.944 MB / 316 MB, free: 8.406 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001375/0.1522, allocations: 444.8 kB / 316.4 MB, free: 7.996 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002152/0.1525, allocations: 263.4 kB / 316.7 MB, free: 7.762 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 1.857e-05/0.1525, allocations: 301.1 kB / 317 MB, free: 7.465 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002032/0.1527, allocations: 170.8 kB / 317.1 MB, free: 7.297 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002719/0.1529, allocations: 0.5824 MB / 317.7 MB, free: 6.574 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005831/0.1535, allocations: 0.9165 MB / 318.6 MB, free: 5.555 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.91e-06/0.1535, allocations: 6.906 kB / 318.6 MB, free: 5.551 MB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001048/0.1546, allocations: 1.044 MB / 319.7 MB, free: 4.586 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.66e-05/0.1546, allocations: 12 kB / 319.7 MB, free: 4.574 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.084e-05/0.1546, allocations: 15.31 kB / 319.7 MB, free: 4.562 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000435/0.155, allocations: 246.9 kB / 320 MB, free: 4.316 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000617/0.1557, allocations: 338.1 kB / 320.3 MB, free: 4.008 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002464/0.1581, allocations: 4.748 MB / 325 MB, free: 15.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004947/0.1586, allocations: 59.94 kB / 325.1 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.682e-05/0.1587, allocations: 48 kB / 325.1 MB, free: 14.96 MB / 282.7 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.0004215/0.1591, allocations: 213.9 kB / 325.3 MB, free: 14.77 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001755/0.1593, allocations: 127.9 kB / 325.5 MB, free: 14.64 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001085/0.1604, allocations: 0.877 MB / 326.3 MB, free: 13.75 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.013e-06/0.1604, allocations: 12.84 kB / 326.4 MB, free: 13.74 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.511e-06/0.1604, allocations: 4 kB / 326.4 MB, free: 13.73 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.1604, allocations: 11.97 kB / 326.4 MB, free: 13.72 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002792/0.1632, allocations: 2.508 MB / 328.9 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.949e-06/0.1632, allocations: 4.469 kB / 328.9 MB, free: 11.46 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004799/0.1637, allocations: 214.4 kB / 329.1 MB, free: 11.26 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005658/0.1642, allocations: 299.8 kB / 329.4 MB, free: 10.96 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.94e-05/0.1643, allocations: 47.56 kB / 329.4 MB, free: 10.91 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003351/0.1677, allocations: 5.935 MB / 335.4 MB, free: 4.699 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.176e-06/0.1677, allocations: 4 kB / 335.4 MB, free: 4.695 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001354/0.169, allocations: 1.299 MB / 336.7 MB, free: 3.359 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003092/0.1693, allocations: 216.4 kB / 336.9 MB, free: 3.148 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.1694, allocations: 31.98 kB / 336.9 MB, free: 3.117 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000352/0.1698, allocations: 43.98 kB / 337 MB, free: 3.074 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001533/0.1699, allocations: 107.2 kB / 337.1 MB, free: 2.977 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.704e-05/0.17, allocations: 35.98 kB / 337.1 MB, free: 2.941 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004138/0.1704, allocations: 0.5208 MB / 337.6 MB, free: 2.48 MB / 282.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1704, allocations: 0 / 337.6 MB, free: 2.48 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.001095/0.1715, allocations: 480.1 kB / 338.1 MB, free: 2.012 MB / 282.7 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%), (1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0002547/0.1718, allocations: 184.3 kB / 338.3 MB, free: 1.832 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001186/0.1729, allocations: 1.187 MB / 339.5 MB, free: 0.6797 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.068e-05/0.173, allocations: 20.62 kB / 339.5 MB, free: 0.6602 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001042/0.174, allocations: 0.9378 MB / 340.4 MB, free: 15.71 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009774/0.175, allocations: 427.2 kB / 340.8 MB, free: 15.32 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004404/0.1794, allocations: 3.81 MB / 344.6 MB, free: 11.46 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004393/0.1798, allocations: 0.5224 MB / 345.2 MB, free: 10.9 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005226/0.1803, allocations: 221.9 kB / 345.4 MB, free: 10.68 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006622/0.181, allocations: 411.1 kB / 345.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of SimCode: time 1.222e-06/0.181, allocations: 0 / 345.8 MB, free: 10.27 MB / 298.7 MB Notification: Performance of Templates: time 0.0366/0.2176, allocations: 26.04 MB / 371.8 MB, free: 0.6914 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -s gbode -gbm=radauIIA3 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_Inverter/SMPM_Inverter.csv","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3500871979631484]