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.0009021/0.0009021, allocations: 72.08 kB / 21.69 MB, free: 2.863 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.0008779/0.0008779, allocations: 146.8 kB / 24.98 MB, free: 8.375 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.079/1.079, allocations: 173.4 MB / 201.5 MB, free: 9.332 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.202e-06/1.202e-06, allocations: 0 / 268.1 MB, free: 6.73 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.555e-05/2.675e-05, allocations: 14.19 kB / 268.1 MB, free: 6.715 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.008989/0.009016, allocations: 10.19 MB / 278.3 MB, free: 12.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006251/0.01527, allocations: 3.365 MB / 281.6 MB, free: 9.102 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001256/0.01652, allocations: 71.5 kB / 281.7 MB, free: 9.031 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.00197/0.01849, allocations: 0.7568 MB / 282.5 MB, free: 8.27 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002243/0.02074, allocations: 0.9196 MB / 283.4 MB, free: 7.344 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009043/0.02164, allocations: 435.2 kB / 283.8 MB, free: 6.918 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002808/0.02445, allocations: 2.85 MB / 286.7 MB, free: 4.059 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001702/0.02615, allocations: 1.317 MB / 288 MB, free: 2.676 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002703/0.02885, allocations: 1.902 MB / 289.9 MB, free: 0.7695 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.1261/0.155, allocations: 1.466 MB / 291.3 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0009553/0.1559, allocations: 334.1 kB / 291.7 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001104/0.157, allocations: 435 kB / 292.1 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000856/0.1579, allocations: 0.9906 MB / 293.1 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001727/0.1596, allocations: 1.042 MB / 294.1 MB, free: 17.86 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003369/0.163, allocations: 2.42 MB / 296.6 MB, free: 17.65 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.739e-06/0.163, allocations: 0.8125 kB / 296.6 MB, free: 17.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.422e-06/0.163, allocations: 0 / 296.6 MB, free: 17.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001018/0.1631, allocations: 2.203 kB / 296.6 MB, free: 17.65 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.006609/0.1697, allocations: 3.203 MB / 299.8 MB, free: 16.31 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.504e-05/0.1698, allocations: 12.42 kB / 299.8 MB, free: 16.31 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001148/0.1709, allocations: 0.4967 MB / 300.3 MB, free: 16.15 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00246/0.1734, allocations: 1.518 MB / 301.8 MB, free: 15.69 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000113/0.1735, allocations: 162.2 kB / 301.9 MB, free: 15.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002998/0.1738, allocations: 230.5 kB / 302.2 MB, free: 15.54 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003247/0.177, allocations: 1.815 MB / 304 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.534e-05/0.1771, allocations: 4.734 kB / 304 MB, free: 14.76 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001821/0.1773, allocations: 88.97 kB / 304.1 MB, free: 14.7 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001048/0.1774, allocations: 114.7 kB / 304.2 MB, free: 14.68 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00198/0.1793, allocations: 0.834 MB / 305 MB, free: 14.54 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.009523/0.1889, allocations: 7.487 MB / 312.5 MB, free: 10.04 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00119/0.1901, allocations: 0.6705 MB / 313.2 MB, free: 9.754 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0009205/0.191, allocations: 0.5087 MB / 313.7 MB, free: 9.57 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001893/0.1912, allocations: 54.81 kB / 313.7 MB, free: 9.559 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.973e-05/0.1912, allocations: 41.7 kB / 313.8 MB, free: 9.512 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 4.619e-06/0.1912, allocations: 0 / 313.8 MB, free: 9.512 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.005715/0.1969, allocations: 3.303 MB / 317.1 MB, free: 6.977 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.605e-05/0.1969, allocations: 71.91 kB / 317.2 MB, free: 6.895 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001165/0.1981, allocations: 1.275 MB / 318.4 MB, free: 5.59 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.907e-05/0.1982, allocations: 49.7 kB / 318.5 MB, free: 5.535 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003887/0.1986, allocations: 1.221 MB / 319.7 MB, free: 4.309 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001976/0.1988, allocations: 454 kB / 320.1 MB, free: 3.871 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002388/0.199, allocations: 277.2 kB / 320.4 MB, free: 3.59 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 3.382e-05/0.199, allocations: 484.7 kB / 320.9 MB, free: 3.113 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003571/0.1994, allocations: 231.8 kB / 321.1 MB, free: 2.887 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004918/0.1999, allocations: 0.8304 MB / 321.9 MB, free: 1.816 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009575/0.2008, allocations: 1.189 MB / 323.1 MB, free: 436 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.747e-06/0.2008, allocations: 4 kB / 323.1 MB, free: 432 kB / 266.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001915/0.2028, allocations: 1.416 MB / 324.6 MB, free: 15.07 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.347e-05/0.2028, allocations: 12.61 kB / 324.6 MB, free: 15.06 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.2028, allocations: 16 kB / 324.6 MB, free: 15.05 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005694/0.2034, allocations: 258.4 kB / 324.8 MB, free: 14.78 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007131/0.2041, allocations: 345.7 kB / 325.2 MB, free: 14.46 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003863/0.2079, allocations: 6.665 MB / 331.8 MB, free: 7.492 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007665/0.2087, allocations: 99.86 kB / 331.9 MB, free: 7.395 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.839e-05/0.2088, allocations: 63.98 kB / 332 MB, free: 7.332 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.0006503/0.2094, allocations: 251.8 kB / 332.2 MB, free: 7.098 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002439/0.2097, allocations: 206.9 kB / 332.4 MB, free: 6.895 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001621/0.2113, allocations: 1.142 MB / 333.6 MB, free: 5.734 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.2113, allocations: 12 kB / 333.6 MB, free: 5.723 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.35e-06/0.2113, allocations: 4 kB / 333.6 MB, free: 5.719 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.086e-05/0.2113, allocations: 7.984 kB / 333.6 MB, free: 5.711 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004118/0.2154, allocations: 3.157 MB / 336.8 MB, free: 2.488 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.212e-06/0.2155, allocations: 6.844 kB / 336.8 MB, free: 2.484 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005801/0.216, allocations: 219.1 kB / 337 MB, free: 2.281 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008201/0.2169, allocations: 296.6 kB / 337.3 MB, free: 1.98 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.458e-05/0.2169, allocations: 31.98 kB / 337.3 MB, free: 1.949 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004803/0.2217, allocations: 8.46 MB / 345.8 MB, free: 9.051 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.352e-06/0.2217, allocations: 11.84 kB / 345.8 MB, free: 9.043 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002208/0.2239, allocations: 1.683 MB / 347.5 MB, free: 7.281 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000467/0.2244, allocations: 294.8 kB / 347.7 MB, free: 6.992 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001479/0.2246, allocations: 35.98 kB / 347.8 MB, free: 6.957 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000479/0.225, allocations: 75.92 kB / 347.9 MB, free: 6.883 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001759/0.2252, allocations: 104.4 kB / 348 MB, free: 6.785 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.455e-05/0.2253, allocations: 43.98 kB / 348 MB, free: 6.742 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.000839/0.2261, allocations: 0.7424 MB / 348.7 MB, free: 6 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.81e-07/0.2261, allocations: 0 / 348.7 MB, free: 6 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001338/0.2274, allocations: 487.9 kB / 349.2 MB, free: 5.523 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%), (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.0003191/0.2278, allocations: 203.9 kB / 349.4 MB, free: 5.328 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.00181/0.2296, allocations: 1.53 MB / 351 MB, free: 3.793 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 3.206e-06/0.2296, allocations: 0 / 351 MB, free: 3.793 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001338/0.2309, allocations: 1.285 MB / 352.2 MB, free: 2.465 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001233/0.2321, allocations: 428.1 kB / 352.7 MB, free: 2.066 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005657/0.2378, allocations: 4.037 MB / 356.7 MB, free: 13.93 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005349/0.2383, allocations: 0.5965 MB / 357.3 MB, free: 13.3 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0007068/0.239, allocations: 301.7 kB / 357.6 MB, free: 13 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002431/0.2393, allocations: 124.5 kB / 357.7 MB, free: 12.88 MB / 314.7 MB Notification: Performance of SimCode: time 1.703e-06/0.2393, allocations: 0 / 357.7 MB, free: 12.88 MB / 314.7 MB Notification: Performance of Templates: time 0.03256/0.2718, allocations: 25.51 MB / 383.2 MB, free: 3.762 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.6458380320109427]