Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001086/0.001086, allocations: 76.05 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001705/0.002792, allocations: 457.8 kB / 10.45 MB, free: 244 kB / 10.45 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.001167/0.001167, allocations: 162 kB / 11.36 MB, free: 2.816 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.00153/0.002697, allocations: 475.6 kB / 11.82 MB, free: 2.348 MB / 13.93 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 0.9665/0.9665, allocations: 177.5 MB / 190 MB, free: 4.789 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1299/1.096, allocations: 53.87 MB / 243.9 MB, free: 14.85 MB / 250.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 7.91e-07/7.91e-07, allocations: 0 / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.981e-05/2.06e-05, allocations: 5.406 kB / 245.2 MB, free: 13.55 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.007715/0.007735, allocations: 10.66 MB / 255.9 MB, free: 2.848 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.004301/0.01204, allocations: 3.753 MB / 259.6 MB, free: 15.07 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006704/0.01271, allocations: 87.38 kB / 259.7 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001066/0.01377, allocations: 0.8305 MB / 260.5 MB, free: 14.15 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001211/0.01498, allocations: 0.9584 MB / 261.5 MB, free: 13.19 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000505/0.01549, allocations: 463.3 kB / 262 MB, free: 12.73 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001909/0.0174, allocations: 3.066 MB / 265 MB, free: 9.656 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001263/0.01866, allocations: 1.552 MB / 266.6 MB, free: 8.023 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002198/0.02086, allocations: 2.675 MB / 269.3 MB, free: 5.328 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001293/0.02215, allocations: 1.5 MB / 270.8 MB, free: 3.824 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003366/0.02249, allocations: 360 kB / 271.1 MB, free: 3.473 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005715/0.02306, allocations: 467.7 kB / 271.6 MB, free: 3.016 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0005721/0.02363, allocations: 0.8689 MB / 272.4 MB, free: 2.145 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007179/0.02435, allocations: 0.9084 MB / 273.3 MB, free: 1.234 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1049/0.1292, allocations: 2.458 MB / 275.8 MB, free: 8.719 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.541e-05/0.1292, allocations: 1.031 kB / 275.8 MB, free: 8.719 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1292, allocations: 1.094 kB / 275.8 MB, free: 8.719 MB / 266.7 MB Notification: Performance of Transformations before backend: time 9.973e-05/0.1293, allocations: 0 / 275.8 MB, free: 8.719 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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.004854/0.1342, allocations: 3.699 MB / 279.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.195e-05/0.1342, allocations: 10.09 kB / 279.5 MB, free: 7.391 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001024/0.1352, allocations: 0.5203 MB / 280 MB, free: 7.293 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001933/0.1372, allocations: 1.316 MB / 281.3 MB, free: 6.812 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001324/0.1373, allocations: 188.2 kB / 281.5 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003187/0.1376, allocations: 247.6 kB / 281.8 MB, free: 6.805 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002615/0.1402, allocations: 1.857 MB / 283.6 MB, free: 6.477 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.062e-05/0.1403, allocations: 11.34 kB / 283.6 MB, free: 6.473 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001863/0.1405, allocations: 114 kB / 283.7 MB, free: 6.469 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001173/0.1406, allocations: 119.5 kB / 283.9 MB, free: 6.461 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001433/0.142, allocations: 0.7409 MB / 284.6 MB, free: 6.367 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007303/0.1493, allocations: 6.922 MB / 291.5 MB, free: 3.566 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006278/0.15, allocations: 0.5188 MB / 292 MB, free: 3.484 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003444/0.1503, allocations: 264.8 kB / 292.3 MB, free: 3.469 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001508/0.1505, allocations: 57.62 kB / 292.4 MB, free: 3.469 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.36e-05/0.1505, allocations: 44.72 kB / 292.4 MB, free: 3.43 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.434e-06/0.1505, allocations: 0 / 292.4 MB, free: 3.43 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.005398/0.1559, allocations: 2.986 MB / 295.4 MB, free: 2.832 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.307e-05/0.1559, allocations: 62.44 kB / 295.5 MB, free: 2.766 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008353/0.1568, allocations: 1.181 MB / 296.6 MB, free: 2.562 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.726e-05/0.1568, allocations: 48.39 kB / 296.7 MB, free: 2.531 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003484/0.1572, allocations: 1.097 MB / 297.8 MB, free: 1.844 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000182/0.1573, allocations: 444.1 kB / 298.2 MB, free: 1.52 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002866/0.1576, allocations: 284.4 kB / 298.5 MB, free: 1.395 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.485e-05/0.1577, allocations: 304.4 kB / 298.8 MB, free: 1.098 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002596/0.1579, allocations: 180.5 kB / 299 MB, free: 1.082 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003847/0.1583, allocations: 0.6823 MB / 299.6 MB, free: 484 kB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009269/0.1592, allocations: 1.101 MB / 300.7 MB, free: 15.81 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.275e-06/0.1592, allocations: 2.844 kB / 300.7 MB, free: 15.81 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001443/0.1607, allocations: 1.038 MB / 301.8 MB, free: 15.02 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.272e-05/0.1607, allocations: 12 kB / 301.8 MB, free: 15.01 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.891e-05/0.1607, allocations: 16.98 kB / 301.8 MB, free: 15 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002766/0.161, allocations: 120.1 kB / 301.9 MB, free: 14.86 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001043/0.162, allocations: 404.5 kB / 302.3 MB, free: 14.49 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001314/0.1633, allocations: 2.43 MB / 304.8 MB, free: 11.92 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006304/0.164, allocations: 63.94 kB / 304.8 MB, free: 11.86 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.235e-05/0.1641, allocations: 56 kB / 304.9 MB, free: 11.8 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 74 * 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 (198): * Single equations (assignments): 194 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(1,2,100.0%), (1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000381/0.1645, allocations: 224.8 kB / 305.1 MB, free: 11.59 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002317/0.1647, allocations: 143.9 kB / 305.2 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001151/0.1658, allocations: 0.7768 MB / 306 MB, free: 10.66 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.957e-06/0.1658, allocations: 14.41 kB / 306 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.65e-06/0.1658, allocations: 4 kB / 306 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.1659, allocations: 7.969 kB / 306 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002914/0.1688, allocations: 2.114 MB / 308.1 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.617e-06/0.1688, allocations: 0 / 308.1 MB, free: 8.672 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005327/0.1693, allocations: 245.9 kB / 308.4 MB, free: 8.445 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002952/0.1696, allocations: 232 kB / 308.6 MB, free: 8.223 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.00025/0.1699, allocations: 153.1 kB / 308.8 MB, free: 8.055 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.311e-05/0.1699, allocations: 20 kB / 308.8 MB, free: 8.035 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001001/0.1709, allocations: 2.406 MB / 311.2 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.725e-06/0.1709, allocations: 0 / 311.2 MB, free: 5.473 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001091/0.172, allocations: 1.126 MB / 312.3 MB, free: 4.309 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001071/0.1721, allocations: 24 kB / 312.3 MB, free: 4.285 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003256/0.1724, allocations: 35.98 kB / 312.4 MB, free: 4.25 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001021/0.1725, allocations: 79.94 kB / 312.5 MB, free: 4.172 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.948e-05/0.1726, allocations: 27.98 kB / 312.5 MB, free: 4.145 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.0004398/0.173, allocations: 0.5797 MB / 313.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of sort global known variables: time 8.1e-08/0.173, allocations: 0 / 313.1 MB, free: 3.637 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007919/0.1738, allocations: 471.9 kB / 313.5 MB, free: 3.176 MB / 282.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 10 * Number of states: 2 (smpm.inertiaRotor.w,quadraticSpeedDependentTorque.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 (121): * Single equations (assignments): 117 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Equation system details (not torn): * Constant Jacobian (size): 0 systems * Linear Jacobian (size,density): 2 systems {(2,100.0%), (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): 2 systems {(1,2,100.0%), (1,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.000273/0.1741, allocations: 179.1 kB / 313.7 MB, free: 3.012 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009961/0.1751, allocations: 1.007 MB / 314.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.745e-05/0.1751, allocations: 43.14 kB / 314.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006141/0.1757, allocations: 0.6699 MB / 315.4 MB, free: 1.363 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002347/0.1781, allocations: 4.354 MB / 319.8 MB, free: 12.16 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01366/0.1917, allocations: 4.23 MB / 324 MB, free: 7.883 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004446/0.1922, allocations: 0.5729 MB / 324.6 MB, free: 7.281 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005789/0.1928, allocations: 251.1 kB / 324.8 MB, free: 7.031 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007131/0.1935, allocations: 455.1 kB / 325.3 MB, free: 6.582 MB / 298.7 MB Notification: Performance of SimCode: time 1.132e-06/0.1935, allocations: 0 / 325.3 MB, free: 6.582 MB / 298.7 MB Notification: Performance of Templates: time 0.0307/0.2242, allocations: 25.6 MB / 350.9 MB, free: 13.45 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/SynchronousMachines/SMPM_CurrentSource/SMPM_CurrentSource.csv","",relTol=0.003,relTolDiffMinMax=0.003,tube=OpenModelica.Scripting.TubeAlgorithm.rectangle) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.2356493258848786]