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.0009746/0.0009746, allocations: 79.75 kB / 21.18 MB, free: 3.379 MB / 18.57 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.001053/0.001053, allocations: 161 kB / 24.56 MB, free: 12 kB / 18.57 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.049/1.049, allocations: 177.1 MB / 205 MB, free: 5.598 MB / 186.7 MB " [Timeout remaining time 179] 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.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|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.[0-9,]+.|smpm.idq_dr.[0-9,]+.|smpm.idq_rr.[0-9,]+.|smpm.idq_sr.[0-9,]+.|vfController.x",fileNamePrefix="Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.024e-06/2.024e-06, allocations: 0 / 273 MB, free: 1.504 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.601e-05/2.803e-05, allocations: 2.312 kB / 273 MB, free: 1.5 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.009771/0.009799, allocations: 10.27 MB / 283.3 MB, free: 7.184 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005524/0.01532, allocations: 3.427 MB / 286.7 MB, free: 3.742 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001102/0.01642, allocations: 79.44 kB / 286.8 MB, free: 3.664 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001421/0.01785, allocations: 0.7645 MB / 287.5 MB, free: 2.895 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002058/0.0199, allocations: 0.9196 MB / 288.5 MB, free: 1.969 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006392/0.02054, allocations: 431.2 kB / 288.9 MB, free: 1.547 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.14/0.1605, allocations: 2.848 MB / 291.7 MB, free: 16.09 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001917/0.1624, allocations: 1.311 MB / 293 MB, free: 15.9 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002656/0.1651, allocations: 1.916 MB / 294.9 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002266/0.1674, allocations: 1.476 MB / 296.4 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008103/0.1682, allocations: 333.7 kB / 296.8 MB, free: 15.72 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000914/0.1691, allocations: 438.9 kB / 297.2 MB, free: 15.71 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0008735/0.17, allocations: 0.9928 MB / 298.2 MB, free: 15.59 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001369/0.1713, allocations: 1.044 MB / 299.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002533/0.1739, allocations: 2.433 MB / 301.6 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1739, allocations: 1.469 kB / 301.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1739, allocations: 0 / 301.7 MB, free: 14.25 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.883e-05/0.1739, allocations: 0 / 301.7 MB, free: 14.25 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.00405/0.178, allocations: 3.216 MB / 304.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.448e-05/0.178, allocations: 10.94 kB / 304.9 MB, free: 12.39 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007522/0.1788, allocations: 0.504 MB / 305.4 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001572/0.1804, allocations: 1.529 MB / 306.9 MB, free: 11.37 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.269e-05/0.1804, allocations: 162.4 kB / 307.1 MB, free: 11.3 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002061/0.1806, allocations: 223.5 kB / 307.3 MB, free: 11.22 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002128/0.1828, allocations: 1.815 MB / 309.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.154e-05/0.1828, allocations: 3.5 kB / 309.1 MB, free: 10.45 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001272/0.1829, allocations: 85.25 kB / 309.2 MB, free: 10.38 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.803e-05/0.183, allocations: 117.1 kB / 309.3 MB, free: 10.36 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001417/0.1844, allocations: 0.8353 MB / 310.1 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006456/0.1909, allocations: 7.495 MB / 317.6 MB, free: 3.027 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009094/0.1918, allocations: 0.67 MB / 318.3 MB, free: 2.359 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006586/0.1925, allocations: 0.5072 MB / 318.8 MB, free: 1.855 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001677/0.1926, allocations: 58.27 kB / 318.9 MB, free: 1.801 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.591e-05/0.1927, allocations: 45.33 kB / 318.9 MB, free: 1.746 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.335e-06/0.1927, allocations: 0 / 318.9 MB, free: 1.746 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.005426/0.1981, allocations: 3.305 MB / 322.2 MB, free: 14.45 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.008e-05/0.1981, allocations: 68.34 kB / 322.3 MB, free: 14.37 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001306/0.1994, allocations: 1.28 MB / 323.6 MB, free: 13.06 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 6.448e-05/0.1995, allocations: 49.7 kB / 323.6 MB, free: 13.01 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0006642/0.2002, allocations: 1.219 MB / 324.8 MB, free: 11.78 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002882/0.2005, allocations: 458 kB / 325.3 MB, free: 11.34 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003227/0.2008, allocations: 283 kB / 325.6 MB, free: 11.05 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001189/0.2009, allocations: 476.8 kB / 326 MB, free: 10.59 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004067/0.2013, allocations: 235.3 kB / 326.2 MB, free: 10.36 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006948/0.202, allocations: 0.8319 MB / 327.1 MB, free: 9.281 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.2032, allocations: 1.191 MB / 328.3 MB, free: 7.898 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.574e-06/0.2032, allocations: 4 kB / 328.3 MB, free: 7.895 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001969/0.2052, allocations: 1.417 MB / 329.7 MB, free: 6.551 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.2052, allocations: 8 kB / 329.7 MB, free: 6.543 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.666e-05/0.2052, allocations: 16 kB / 329.7 MB, free: 6.527 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005817/0.2058, allocations: 257.6 kB / 330 MB, free: 6.262 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000716/0.2065, allocations: 348.8 kB / 330.3 MB, free: 5.941 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00389/0.2104, allocations: 6.659 MB / 337 MB, free: 14.97 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006786/0.2111, allocations: 107.8 kB / 337.1 MB, free: 14.86 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.655e-05/0.2112, allocations: 60 kB / 337.1 MB, free: 14.8 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.0005347/0.2117, allocations: 250.9 kB / 337.4 MB, free: 14.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002329/0.2119, allocations: 211 kB / 337.6 MB, free: 14.36 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.2135, allocations: 1.157 MB / 338.7 MB, free: 13.19 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.476e-06/0.2135, allocations: 12 kB / 338.7 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.923e-06/0.2135, allocations: 4 kB / 338.8 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.048e-05/0.2135, allocations: 7.969 kB / 338.8 MB, free: 13.17 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004022/0.2175, allocations: 3.15 MB / 341.9 MB, free: 9.949 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.709e-06/0.2175, allocations: 4 kB / 341.9 MB, free: 9.945 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005099/0.218, allocations: 215 kB / 342.1 MB, free: 9.746 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0006611/0.2187, allocations: 302.3 kB / 342.4 MB, free: 9.441 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.009e-05/0.2188, allocations: 35.98 kB / 342.5 MB, free: 9.406 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004637/0.2234, allocations: 8.45 MB / 350.9 MB, free: 0.5078 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.909e-06/0.2234, allocations: 8 kB / 350.9 MB, free: 0.5 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002183/0.2256, allocations: 1.685 MB / 352.6 MB, free: 14.74 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004684/0.2261, allocations: 302.8 kB / 352.9 MB, free: 14.44 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001177/0.2262, allocations: 31.98 kB / 352.9 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004403/0.2266, allocations: 83.92 kB / 353 MB, free: 14.33 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001679/0.2268, allocations: 100.2 kB / 353.1 MB, free: 14.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.207e-05/0.2268, allocations: 39.98 kB / 353.1 MB, free: 14.2 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007704/0.2276, allocations: 0.7504 MB / 353.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.2276, allocations: 0 / 353.9 MB, free: 13.45 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001282/0.2289, allocations: 483.9 kB / 354.4 MB, free: 12.97 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.0003363/0.2292, allocations: 204.7 kB / 354.6 MB, free: 12.78 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001793/0.231, allocations: 1.526 MB / 356.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.046e-06/0.231, allocations: 0 / 356.1 MB, free: 11.25 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001145/0.2322, allocations: 1.292 MB / 357.4 MB, free: 9.906 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001196/0.2334, allocations: 436 kB / 357.8 MB, free: 9.504 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005195/0.2386, allocations: 4.038 MB / 361.8 MB, free: 5.367 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.2391, allocations: 0.5966 MB / 362.4 MB, free: 4.742 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0005812/0.2396, allocations: 305.7 kB / 362.7 MB, free: 4.438 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002477/0.2399, allocations: 120.5 kB / 362.9 MB, free: 4.32 MB / 314.7 MB Notification: Performance of SimCode: time 1.192e-06/0.2399, allocations: 0 / 362.9 MB, free: 4.32 MB / 314.7 MB Notification: Performance of Templates: time 0.03408/0.274, allocations: 25.63 MB / 388.5 MB, free: 11.11 MB / 346.7 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=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] 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","",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.8369760122150183]