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.0009329/0.0009329, allocations: 78.97 kB / 21.42 MB, free: 3.078 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.0009571/0.0009571, allocations: 148.9 kB / 24.81 MB, free: 9.27 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.005/1.005, allocations: 173.4 MB / 201.4 MB, free: 9.23 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.313e-06/1.313e-06, allocations: 0 / 268.4 MB, free: 6.211 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 9.377e-06/1.069e-05, allocations: 6.312 kB / 268.4 MB, free: 6.203 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.007306/0.007316, allocations: 9.955 MB / 278.4 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004182/0.0115, allocations: 3.353 MB / 281.7 MB, free: 8.84 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006452/0.01214, allocations: 71.5 kB / 281.8 MB, free: 8.77 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001092/0.01324, allocations: 0.7529 MB / 282.6 MB, free: 8.012 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001524/0.01476, allocations: 0.9234 MB / 283.5 MB, free: 7.082 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006556/0.01541, allocations: 435.2 kB / 283.9 MB, free: 6.656 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002134/0.01755, allocations: 2.851 MB / 286.8 MB, free: 3.793 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001446/0.019, allocations: 1.313 MB / 288.1 MB, free: 2.414 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002044/0.02104, allocations: 2.14 MB / 290.2 MB, free: 276 kB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1055/0.1266, allocations: 1.384 MB / 291.6 MB, free: 17.71 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009329/0.1275, allocations: 324.7 kB / 291.9 MB, free: 17.71 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.00107/0.1286, allocations: 416.4 kB / 292.3 MB, free: 17.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007328/0.1293, allocations: 0.9435 MB / 293.3 MB, free: 17.71 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001391/0.1307, allocations: 1.014 MB / 294.3 MB, free: 17.71 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002814/0.1335, allocations: 2.367 MB / 296.6 MB, free: 17.5 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1335, allocations: 0.5938 kB / 296.6 MB, free: 17.5 MB / 266.7 MB Notification: Performance of FrontEnd: time 8.52e-07/0.1335, allocations: 0 / 296.6 MB, free: 17.5 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.809e-05/0.1336, allocations: 1.969 kB / 296.6 MB, free: 17.5 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.005137/0.1388, allocations: 3.065 MB / 299.7 MB, free: 16.15 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.442e-05/0.1388, allocations: 11.53 kB / 299.7 MB, free: 16.15 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001054/0.1399, allocations: 0.5004 MB / 300.2 MB, free: 15.99 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002132/0.142, allocations: 1.479 MB / 301.7 MB, free: 15.55 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001018/0.1421, allocations: 174.6 kB / 301.9 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002851/0.1424, allocations: 224.3 kB / 302.1 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00226/0.1446, allocations: 1.661 MB / 303.7 MB, free: 15.15 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.356e-05/0.1447, allocations: 12.38 kB / 303.8 MB, free: 15.14 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001462/0.1448, allocations: 91.28 kB / 303.8 MB, free: 15.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.203e-05/0.1449, allocations: 114.4 kB / 304 MB, free: 15.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001043/0.146, allocations: 0.654 MB / 304.6 MB, free: 15 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00705/0.153, allocations: 7.256 MB / 311.9 MB, free: 10.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007772/0.1538, allocations: 0.6559 MB / 312.5 MB, free: 10.69 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005387/0.1543, allocations: 469.8 kB / 313 MB, free: 10.55 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000147/0.1545, allocations: 50.11 kB / 313 MB, free: 10.54 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.544e-05/0.1545, allocations: 47.64 kB / 313.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.585e-06/0.1545, allocations: 4 kB / 313.1 MB, free: 10.49 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.003923/0.1584, allocations: 2.59 MB / 315.7 MB, free: 8.875 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.085e-05/0.1585, allocations: 68.34 kB / 315.7 MB, free: 8.793 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008519/0.1593, allocations: 1.235 MB / 317 MB, free: 7.727 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.277e-05/0.1594, allocations: 45.7 kB / 317 MB, free: 7.676 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000425/0.1598, allocations: 1.233 MB / 318.3 MB, free: 6.496 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001897/0.16, allocations: 453.5 kB / 318.7 MB, free: 6.078 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002478/0.1602, allocations: 283.9 kB / 319 MB, free: 5.82 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.538e-05/0.1603, allocations: 480.8 kB / 319.4 MB, free: 5.348 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002183/0.1605, allocations: 178.9 kB / 319.6 MB, free: 5.176 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00036/0.1608, allocations: 0.7832 MB / 320.4 MB, free: 4.184 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007769/0.1616, allocations: 1.092 MB / 321.5 MB, free: 2.926 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.182e-05/0.1616, allocations: 11.62 kB / 321.5 MB, free: 2.918 MB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001368/0.163, allocations: 1.283 MB / 322.8 MB, free: 1.711 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.025e-05/0.163, allocations: 12.62 kB / 322.8 MB, free: 1.699 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.284e-05/0.163, allocations: 12 kB / 322.8 MB, free: 1.688 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004793/0.1635, allocations: 260.6 kB / 323.1 MB, free: 1.426 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000569/0.1641, allocations: 308.7 kB / 323.4 MB, free: 1.145 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003249/0.1673, allocations: 6.471 MB / 329.8 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005064/0.1678, allocations: 63.94 kB / 329.9 MB, free: 10.37 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.063e-05/0.1679, allocations: 51.98 kB / 329.9 MB, free: 10.32 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.0004367/0.1684, allocations: 253.7 kB / 330.2 MB, free: 10.08 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000218/0.1686, allocations: 210.9 kB / 330.4 MB, free: 9.875 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001237/0.1698, allocations: 1.024 MB / 331.4 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.368e-06/0.1698, allocations: 15.98 kB / 331.4 MB, free: 8.824 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.282e-06/0.1698, allocations: 4.047 kB / 331.4 MB, free: 8.82 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.097e-06/0.1698, allocations: 7.969 kB / 331.5 MB, free: 8.812 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003388/0.1732, allocations: 2.983 MB / 334.4 MB, free: 6.051 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.758e-06/0.1732, allocations: 12 kB / 334.4 MB, free: 6.039 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004361/0.1737, allocations: 195 kB / 334.6 MB, free: 5.859 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005404/0.1742, allocations: 273 kB / 334.9 MB, free: 5.586 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.305e-05/0.1743, allocations: 31.98 kB / 334.9 MB, free: 5.555 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004616/0.1789, allocations: 8.202 MB / 343.1 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.218e-06/0.1789, allocations: 4 kB / 343.1 MB, free: 13 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002008/0.1809, allocations: 1.527 MB / 344.7 MB, free: 11.42 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004368/0.1813, allocations: 262.7 kB / 344.9 MB, free: 11.16 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001471/0.1815, allocations: 43.27 kB / 345 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005062/0.182, allocations: 39.98 kB / 345 MB, free: 11.09 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001761/0.1822, allocations: 108.1 kB / 345.1 MB, free: 10.98 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.05e-05/0.1822, allocations: 35.98 kB / 345.1 MB, free: 10.95 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000683/0.1829, allocations: 0.6764 MB / 345.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.1829, allocations: 0 / 345.8 MB, free: 10.34 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001492/0.1844, allocations: 479.9 kB / 346.3 MB, free: 9.867 MB / 298.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.0003078/0.1847, allocations: 189.5 kB / 346.5 MB, free: 9.684 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001651/0.1864, allocations: 1.42 MB / 347.9 MB, free: 8.277 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.427e-06/0.1864, allocations: 448 / 347.9 MB, free: 8.277 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001152/0.1875, allocations: 1.202 MB / 349.1 MB, free: 7.051 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00143/0.1889, allocations: 428 kB / 349.5 MB, free: 6.648 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005745/0.1947, allocations: 3.987 MB / 353.5 MB, free: 2.594 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006166/0.1953, allocations: 0.5926 MB / 354.1 MB, free: 1.973 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0006687/0.196, allocations: 209.9 kB / 354.3 MB, free: 1.758 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0008342/0.1968, allocations: 477.9 kB / 354.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of SimCode: time 7.92e-07/0.1968, allocations: 0 / 354.8 MB, free: 1.289 MB / 298.7 MB Notification: Performance of Templates: time 0.03987/0.2367, allocations: 26.09 MB / 380.9 MB, free: 7.66 MB / 330.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 -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.4811551072634757]