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.001938/0.001938, allocations: 92.62 kB / 20.96 MB, free: 3.473 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.002234/0.002234, allocations: 149.4 kB / 24.26 MB, free: 184 kB / 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.486/1.486, allocations: 173.4 MB / 200.8 MB, free: 9.293 MB / 186.7 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.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.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.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.713e-06/1.713e-06, allocations: 0 / 267.3 MB, free: 6.711 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.04e-05/3.211e-05, allocations: 6.312 kB / 267.3 MB, free: 6.703 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.01452/0.01455, allocations: 9.126 MB / 276.5 MB, free: 13.53 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007578/0.02213, allocations: 3.24 MB / 279.7 MB, free: 10.28 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001426/0.02356, allocations: 75.5 kB / 279.8 MB, free: 10.21 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002227/0.02578, allocations: 0.7606 MB / 280.5 MB, free: 9.441 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003134/0.02892, allocations: 0.9196 MB / 281.5 MB, free: 8.516 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001099/0.03002, allocations: 423.4 kB / 281.9 MB, free: 8.102 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004369/0.03438, allocations: 2.861 MB / 284.7 MB, free: 5.234 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.00225/0.03663, allocations: 1.305 MB / 286 MB, free: 3.863 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003503/0.04014, allocations: 1.887 MB / 287.9 MB, free: 1.973 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.003011/0.04315, allocations: 1.36 MB / 289.3 MB, free: 0.6094 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007689/0.04392, allocations: 336 kB / 289.6 MB, free: 288 kB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.1136/0.1575, allocations: 430 kB / 290 MB, free: 18.85 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.001304/0.1588, allocations: 0.978 MB / 291 MB, free: 18.85 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001726/0.1605, allocations: 1.029 MB / 292 MB, free: 18.85 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.004695/0.1652, allocations: 4.444 MB / 296.5 MB, free: 18.64 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.539e-06/0.1652, allocations: 1.125 kB / 296.5 MB, free: 18.64 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.162e-06/0.1652, allocations: 0 / 296.5 MB, free: 18.64 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.862e-05/0.1653, allocations: 0.6875 kB / 296.5 MB, free: 18.64 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.006202/0.1715, allocations: 3.028 MB / 299.5 MB, free: 17.41 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.895e-05/0.1716, allocations: 11.08 kB / 299.5 MB, free: 17.41 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001181/0.1727, allocations: 0.4968 MB / 300 MB, free: 17.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002692/0.1754, allocations: 1.619 MB / 301.6 MB, free: 16.78 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001287/0.1756, allocations: 169.2 kB / 301.8 MB, free: 16.7 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003356/0.1759, allocations: 227.6 kB / 302 MB, free: 16.63 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004703/0.1806, allocations: 3.019 MB / 305 MB, free: 15.17 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.421e-05/0.1807, allocations: 14.17 kB / 305.1 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0002279/0.1809, allocations: 90.97 kB / 305.1 MB, free: 15.1 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.987e-05/0.181, allocations: 111.3 kB / 305.3 MB, free: 15.08 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003712/0.1847, allocations: 2.428 MB / 307.7 MB, free: 13.84 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01114/0.1958, allocations: 7.971 MB / 315.7 MB, free: 8.285 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001804/0.1976, allocations: 1.176 MB / 316.8 MB, free: 7.105 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001478/0.1991, allocations: 0.9177 MB / 317.7 MB, free: 6.188 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0002147/0.1993, allocations: 60.64 kB / 317.8 MB, free: 6.133 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.245e-05/0.1994, allocations: 47.22 kB / 317.9 MB, free: 6.082 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.996e-06/0.1994, allocations: 4 kB / 317.9 MB, free: 6.078 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.01235/0.2117, allocations: 6.08 MB / 323.9 MB, free: 12 kB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.123e-05/0.2118, allocations: 68.34 kB / 324 MB, free: 15.93 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002459/0.2143, allocations: 1.429 MB / 325.4 MB, free: 14.49 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001141/0.2144, allocations: 45.7 kB / 325.5 MB, free: 14.44 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.001096/0.2155, allocations: 1.139 MB / 326.6 MB, free: 13.29 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004933/0.216, allocations: 444.5 kB / 327 MB, free: 12.86 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0005214/0.2165, allocations: 271.5 kB / 327.3 MB, free: 12.59 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001672/0.2166, allocations: 301.1 kB / 327.6 MB, free: 12.29 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001433/0.2181, allocations: 0.7105 MB / 328.3 MB, free: 11.58 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00192/0.22, allocations: 1.137 MB / 329.5 MB, free: 10.27 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003673/0.2237, allocations: 1.976 MB / 331.4 MB, free: 8.172 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.045e-05/0.2237, allocations: 4 kB / 331.4 MB, free: 8.168 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.005365/0.229, allocations: 2.501 MB / 333.9 MB, free: 5.742 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.257e-05/0.2291, allocations: 12 kB / 333.9 MB, free: 5.73 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.83e-05/0.2291, allocations: 16.28 kB / 334 MB, free: 5.715 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.001341/0.2304, allocations: 462.6 kB / 334.4 MB, free: 5.254 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001461/0.2319, allocations: 354.7 kB / 334.8 MB, free: 4.93 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.009701/0.2416, allocations: 6.723 MB / 341.5 MB, free: 13.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001758/0.2434, allocations: 107.8 kB / 341.6 MB, free: 13.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000158/0.2435, allocations: 60 kB / 341.6 MB, free: 13.79 MB / 298.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.001667/0.2452, allocations: 0.7133 MB / 342.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005254/0.2457, allocations: 203 kB / 342.6 MB, free: 12.88 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.004541/0.2503, allocations: 2.113 MB / 344.7 MB, free: 10.75 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.424e-05/0.2503, allocations: 12 kB / 344.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.809e-06/0.2503, allocations: 4 kB / 344.7 MB, free: 10.74 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.304e-05/0.2503, allocations: 3.984 kB / 344.7 MB, free: 10.73 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009272/0.2596, allocations: 4.135 MB / 348.8 MB, free: 6.574 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.014e-05/0.2596, allocations: 4 kB / 348.8 MB, free: 6.57 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001061/0.2606, allocations: 218.9 kB / 349 MB, free: 6.367 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001522/0.2622, allocations: 482.5 kB / 349.5 MB, free: 5.891 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001236/0.2623, allocations: 43.97 kB / 349.6 MB, free: 5.848 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.01073/0.273, allocations: 8.137 MB / 357.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.673e-06/0.273, allocations: 7.562 kB / 357.7 MB, free: 13.34 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006514/0.2795, allocations: 3.159 MB / 360.9 MB, free: 10.12 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009161/0.2805, allocations: 318.8 kB / 361.2 MB, free: 9.812 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002295/0.2807, allocations: 32 kB / 361.2 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009602/0.2816, allocations: 79.91 kB / 361.3 MB, free: 9.703 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002695/0.2819, allocations: 107.9 kB / 361.4 MB, free: 9.602 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001019/0.282, allocations: 42.72 kB / 361.4 MB, free: 9.562 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001759/0.2838, allocations: 0.9494 MB / 362.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.2838, allocations: 0 / 362.4 MB, free: 8.613 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001976/0.2857, allocations: 484.1 kB / 362.9 MB, free: 8.141 MB / 314.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%), (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.0004449/0.2862, allocations: 201.1 kB / 363 MB, free: 7.945 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.004345/0.2905, allocations: 2.153 MB / 365.2 MB, free: 5.805 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.362e-06/0.2905, allocations: 4 kB / 365.2 MB, free: 5.801 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002749/0.2933, allocations: 1.419 MB / 366.6 MB, free: 4.359 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0024/0.2957, allocations: 432.8 kB / 367 MB, free: 3.953 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00851/0.3042, allocations: 4.635 MB / 371.7 MB, free: 15.25 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001819/0.306, allocations: 1.298 MB / 373 MB, free: 13.91 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.001185/0.3072, allocations: 373.7 kB / 373.3 MB, free: 13.54 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004025/0.3076, allocations: 120.5 kB / 373.5 MB, free: 13.42 MB / 330.7 MB Notification: Performance of SimCode: time 1.112e-06/0.3076, allocations: 0 / 373.5 MB, free: 13.42 MB / 330.7 MB Notification: Performance of Templates: time 0.05217/0.3598, allocations: 25.44 MB / 398.9 MB, free: 4.371 MB / 346.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=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 480] 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.607419414911419]