Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001359/0.001359, allocations: 91.5 kB / 21.2 MB, free: 3.375 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009508/0.0009508, allocations: 156.5 kB / 24.55 MB, free: 20 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.024/1.024, allocations: 177 MB / 204.8 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.753e-06/1.753e-06, allocations: 0 / 272.9 MB, free: 1.465 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.656e-05/1.831e-05, allocations: 2.312 kB / 272.9 MB, free: 1.461 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter): time 0.00843/0.008449, allocations: 10.29 MB / 283.2 MB, free: 7.129 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.005062/0.01351, allocations: 3.427 MB / 286.6 MB, free: 3.688 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006452/0.01416, allocations: 75.44 kB / 286.7 MB, free: 3.613 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001122/0.01528, allocations: 0.7645 MB / 287.5 MB, free: 2.844 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001378/0.01666, allocations: 0.9234 MB / 288.4 MB, free: 1.914 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005957/0.01725, allocations: 435.2 kB / 288.8 MB, free: 1.488 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1138/0.131, allocations: 2.858 MB / 291.7 MB, free: 15.56 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001718/0.1328, allocations: 1.313 MB / 293 MB, free: 15.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002768/0.1355, allocations: 2.153 MB / 295.2 MB, free: 15.29 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00182/0.1373, allocations: 1.392 MB / 296.5 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0006357/0.138, allocations: 324.6 kB / 296.9 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000763/0.1387, allocations: 426.4 kB / 297.3 MB, free: 15.18 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006743/0.1394, allocations: 0.9467 MB / 298.2 MB, free: 15.05 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.00135/0.1408, allocations: 1.017 MB / 299.2 MB, free: 14.94 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002277/0.143, allocations: 2.378 MB / 301.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.767e-06/0.1431, allocations: 0 / 301.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.1431, allocations: 0 / 301.6 MB, free: 14.03 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.54e-05/0.1431, allocations: 0 / 301.6 MB, free: 14.03 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.003395/0.1465, allocations: 3.16 MB / 304.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.792e-05/0.1465, allocations: 15.48 kB / 304.8 MB, free: 12.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006782/0.1472, allocations: 0.4998 MB / 305.3 MB, free: 11.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001362/0.1486, allocations: 1.568 MB / 306.9 MB, free: 11.11 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.449e-05/0.1487, allocations: 172.2 kB / 307 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001908/0.1489, allocations: 223.5 kB / 307.3 MB, free: 10.96 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00199/0.1508, allocations: 1.808 MB / 309.1 MB, free: 10.18 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.089e-05/0.1509, allocations: 7.953 kB / 309.1 MB, free: 10.17 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001223/0.151, allocations: 87.09 kB / 309.2 MB, free: 10.11 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.261e-05/0.1511, allocations: 116.1 kB / 309.3 MB, free: 10.09 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001321/0.1524, allocations: 0.8288 MB / 310.1 MB, free: 9.848 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005505/0.1579, allocations: 7.346 MB / 317.4 MB, free: 2.922 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008302/0.1587, allocations: 0.7093 MB / 318.2 MB, free: 2.223 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.00059/0.1593, allocations: 0.5013 MB / 318.7 MB, free: 1.723 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000125/0.1595, allocations: 56.97 kB / 318.7 MB, free: 1.668 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.1595, allocations: 50.38 kB / 318.8 MB, free: 1.605 MB / 266.7 MB Notification: Performance of pre-optimization done (n=105): time 2.244e-06/0.1595, allocations: 0 / 318.8 MB, free: 1.605 MB / 266.7 MB Notification: Performance of matching and sorting (n=122): time 0.004523/0.164, allocations: 3.238 MB / 322 MB, free: 14.37 MB / 282.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.989e-05/0.164, allocations: 71.06 kB / 322.1 MB, free: 14.29 MB / 282.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.1651, allocations: 1.28 MB / 323.3 MB, free: 12.98 MB / 282.7 MB Notification: Performance of collectPreVariables (initialization): time 5.598e-05/0.1652, allocations: 45.7 kB / 323.4 MB, free: 12.93 MB / 282.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.000585/0.1658, allocations: 1.225 MB / 324.6 MB, free: 11.7 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002809/0.1661, allocations: 449.3 kB / 325.1 MB, free: 11.27 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002622/0.1663, allocations: 273.2 kB / 325.3 MB, free: 10.99 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 9.454e-05/0.1664, allocations: 488.7 kB / 325.8 MB, free: 10.51 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003463/0.1668, allocations: 227.8 kB / 326 MB, free: 10.29 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007074/0.1675, allocations: 0.8305 MB / 326.9 MB, free: 9.215 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001029/0.1685, allocations: 1.187 MB / 328 MB, free: 7.828 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.342e-06/0.1685, allocations: 4 kB / 328 MB, free: 7.824 MB / 282.7 MB Notification: Performance of matching and sorting (n=191) (initialization): time 0.001645/0.1702, allocations: 1.415 MB / 329.5 MB, free: 6.48 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.609e-05/0.1702, allocations: 16.03 kB / 329.5 MB, free: 6.465 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.109e-05/0.1702, allocations: 12 kB / 329.5 MB, free: 6.453 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004982/0.1707, allocations: 258 kB / 329.7 MB, free: 6.188 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000849/0.1715, allocations: 333.7 kB / 330.1 MB, free: 5.883 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003227/0.1748, allocations: 6.656 MB / 336.7 MB, free: 14.92 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000449/0.1752, allocations: 87.88 kB / 336.8 MB, free: 14.83 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.876e-05/0.1753, allocations: 64 kB / 336.9 MB, free: 14.77 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.0003064/0.1756, allocations: 256.3 kB / 337.1 MB, free: 14.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005104/0.1761, allocations: 210.9 kB / 337.3 MB, free: 14.32 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001694/0.1778, allocations: 1.127 MB / 338.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.094e-05/0.1778, allocations: 15.94 kB / 338.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.773e-06/0.1778, allocations: 4 kB / 338.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.557e-06/0.1778, allocations: 3.984 kB / 338.5 MB, free: 13.16 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003876/0.1817, allocations: 3.121 MB / 341.6 MB, free: 9.977 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.972e-06/0.1817, allocations: 4 kB / 341.6 MB, free: 9.973 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004893/0.1822, allocations: 206.2 kB / 341.8 MB, free: 9.785 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0005892/0.1828, allocations: 280.8 kB / 342.1 MB, free: 9.496 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.55e-05/0.1828, allocations: 35.98 kB / 342.1 MB, free: 9.461 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004168/0.187, allocations: 8.378 MB / 350.5 MB, free: 0.6367 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.357e-06/0.187, allocations: 4 kB / 350.5 MB, free: 0.6328 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002024/0.189, allocations: 1.675 MB / 352.2 MB, free: 14.88 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000431/0.1895, allocations: 286.7 kB / 352.4 MB, free: 14.6 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001186/0.1896, allocations: 35.27 kB / 352.5 MB, free: 14.57 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004048/0.19, allocations: 63.94 kB / 352.5 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001627/0.1901, allocations: 100.2 kB / 352.6 MB, free: 14.41 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.341e-05/0.1902, allocations: 43.97 kB / 352.7 MB, free: 14.37 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007568/0.191, allocations: 0.7466 MB / 353.4 MB, free: 13.62 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.71e-07/0.191, allocations: 0 / 353.4 MB, free: 13.62 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001103/0.1921, allocations: 475.9 kB / 353.9 MB, free: 13.16 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%), (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.0002856/0.1923, allocations: 197.8 kB / 354.1 MB, free: 12.96 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001618/0.194, allocations: 1.522 MB / 355.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.194, allocations: 0 / 355.6 MB, free: 11.44 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001002/0.195, allocations: 1.256 MB / 356.9 MB, free: 10.14 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001101/0.1961, allocations: 430.2 kB / 357.3 MB, free: 9.746 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004919/0.201, allocations: 4.035 MB / 361.3 MB, free: 5.617 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004643/0.2015, allocations: 0.5888 MB / 361.9 MB, free: 4.992 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0006348/0.2021, allocations: 313.7 kB / 362.2 MB, free: 4.68 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002331/0.2023, allocations: 120.4 kB / 362.3 MB, free: 4.562 MB / 314.7 MB Notification: Performance of SimCode: time 1.363e-06/0.2023, allocations: 0 / 362.3 MB, free: 4.562 MB / 314.7 MB Notification: Performance of Templates: time 0.0322/0.2345, allocations: 25.73 MB / 388.1 MB, free: 11.27 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_Inverter.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_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.469403787981719]