Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.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.001309/0.001309, allocations: 77.36 kB / 10 MB, free: 0.6836 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001825/0.003134, allocations: 445.8 kB / 10.44 MB, free: 256 kB / 10.45 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.001016/0.001016, allocations: 148.9 kB / 11.34 MB, free: 2.836 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001435/0.002451, allocations: 475.6 kB / 11.8 MB, free: 2.367 MB / 13.93 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 0.8991/0.8991, allocations: 173.4 MB / 186 MB, free: 7.539 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1813/1.08, allocations: 52.48 MB / 238.5 MB, free: 7.633 MB / 234.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.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") translateModel(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|speedSensor.flange.phi",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.833e-06/1.833e-06, allocations: 0 / 239.8 MB, free: 6.352 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.036e-05/2.219e-05, allocations: 4.5 kB / 239.8 MB, free: 6.348 MB / 234.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource): time 0.01569/0.01571, allocations: 14.63 MB / 254.4 MB, free: 7.66 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0137/0.02941, allocations: 5.222 MB / 259.6 MB, free: 2.449 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.004532/0.03394, allocations: 119.2 kB / 259.7 MB, free: 2.332 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.003787/0.03773, allocations: 1.099 MB / 260.8 MB, free: 1.227 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00539/0.04312, allocations: 1.339 MB / 262.2 MB, free: 15.88 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.002464/0.04558, allocations: 0.8842 MB / 263.1 MB, free: 14.99 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.004948/0.05053, allocations: 3.769 MB / 266.8 MB, free: 11.21 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.002555/0.05308, allocations: 1.901 MB / 268.7 MB, free: 9.211 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.004753/0.05784, allocations: 3.209 MB / 271.9 MB, free: 5.98 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002794/0.06063, allocations: 1.769 MB / 273.7 MB, free: 4.207 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008443/0.06148, allocations: 472 kB / 274.2 MB, free: 3.746 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.001504/0.06298, allocations: 0.6636 MB / 274.8 MB, free: 3.082 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0006522/0.06363, allocations: 0.9195 MB / 275.7 MB, free: 2.16 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001275/0.06491, allocations: 1.131 MB / 276.9 MB, free: 1.027 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.003154/0.06806, allocations: 3.091 MB / 280 MB, free: 13.93 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.255e-05/0.06807, allocations: 0 / 280 MB, free: 13.93 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.06807, allocations: 4 kB / 280 MB, free: 13.92 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.744e-05/0.06812, allocations: 0 / 280 MB, free: 13.92 MB / 282.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 826 * Number of variables: 826 Notification: Performance of Generate backend data structure: time 0.005092/0.07321, allocations: 4.806 MB / 284.8 MB, free: 9.043 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.842e-05/0.07325, allocations: 16.02 kB / 284.8 MB, free: 9.027 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001693/0.07494, allocations: 0.8436 MB / 285.6 MB, free: 8.184 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002127/0.07707, allocations: 1.48 MB / 287.1 MB, free: 6.648 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001265/0.0772, allocations: 238.7 kB / 287.4 MB, free: 6.414 MB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003146/0.07751, allocations: 312.3 kB / 287.7 MB, free: 6.109 MB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002622/0.08013, allocations: 2.292 MB / 289.9 MB, free: 3.734 MB / 282.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.847e-05/0.08019, allocations: 15.89 kB / 290 MB, free: 3.719 MB / 282.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000183/0.08038, allocations: 135.9 kB / 290.1 MB, free: 3.586 MB / 282.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 0.0001074/0.08048, allocations: 138.2 kB / 290.2 MB, free: 3.449 MB / 282.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001453/0.08194, allocations: 0.9423 MB / 291.2 MB, free: 2.484 MB / 282.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.008745/0.09068, allocations: 8.62 MB / 299.8 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001234/0.09192, allocations: 1.052 MB / 300.8 MB, free: 8.406 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004521/0.09237, allocations: 408.4 kB / 301.2 MB, free: 8.004 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.000126/0.09249, allocations: 57.27 kB / 301.3 MB, free: 7.945 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.293e-05/0.09253, allocations: 47.88 kB / 301.3 MB, free: 7.891 MB / 298.7 MB Notification: Performance of pre-optimization done (n=131): time 4.268e-06/0.09253, allocations: 0 / 301.3 MB, free: 7.891 MB / 298.7 MB Notification: Performance of matching and sorting (n=167): time 0.006388/0.09892, allocations: 3.858 MB / 305.2 MB, free: 3.996 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.221e-05/0.09895, allocations: 77.34 kB / 305.3 MB, free: 3.91 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008256/0.09978, allocations: 1.231 MB / 306.5 MB, free: 2.676 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.978e-05/0.09984, allocations: 53.7 kB / 306.6 MB, free: 2.617 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004686/0.1003, allocations: 1.293 MB / 307.9 MB, free: 1.305 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002626/0.1006, allocations: 0.5847 MB / 308.4 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002881/0.1009, allocations: 343.3 kB / 308.8 MB, free: 380 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.776e-05/0.1009, allocations: 305.1 kB / 309.1 MB, free: 72 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002804/0.1012, allocations: 230.8 kB / 309.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004906/0.1017, allocations: 0.8332 MB / 310.1 MB, free: 14.72 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009433/0.1026, allocations: 1.333 MB / 311.5 MB, free: 13.13 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.873e-06/0.1026, allocations: 4 kB / 311.5 MB, free: 13.12 MB / 314.7 MB Notification: Performance of matching and sorting (n=256) (initialization): time 0.001191/0.1038, allocations: 1.19 MB / 312.7 MB, free: 11.92 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.321e-05/0.1038, allocations: 19.94 kB / 312.7 MB, free: 11.9 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.487e-05/0.1039, allocations: 16 kB / 312.7 MB, free: 11.88 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000178/0.104, allocations: 86.45 kB / 312.8 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001077/0.1051, allocations: 0.5543 MB / 313.3 MB, free: 11.23 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005845/0.1057, allocations: 1.182 MB / 314.5 MB, free: 9.969 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005508/0.1063, allocations: 75.88 kB / 314.6 MB, free: 9.895 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.385e-05/0.1063, allocations: 68 kB / 314.7 MB, free: 9.828 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 85 * 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 (253): * Single equations (assignments): 250 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0005075/0.1068, allocations: 256 kB / 314.9 MB, free: 9.566 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001629/0.107, allocations: 163.8 kB / 315.1 MB, free: 9.406 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000986/0.108, allocations: 0.8995 MB / 316 MB, free: 8.484 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.907e-06/0.108, allocations: 16 kB / 316 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.108, allocations: 4 kB / 316 MB, free: 8.465 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.051e-05/0.108, allocations: 7.969 kB / 316 MB, free: 8.457 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002986/0.111, allocations: 2.584 MB / 318.6 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.639e-06/0.111, allocations: 0 / 318.6 MB, free: 5.773 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008695/0.1119, allocations: 371.9 kB / 318.9 MB, free: 5.41 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003574/0.1122, allocations: 226.6 kB / 319.2 MB, free: 5.188 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001489/0.1124, allocations: 66.52 kB / 319.2 MB, free: 5.113 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.002e-05/0.1124, allocations: 28 kB / 319.3 MB, free: 5.086 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005092/0.1129, allocations: 1.166 MB / 320.4 MB, free: 3.832 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.236e-06/0.1129, allocations: 7.938 kB / 320.4 MB, free: 3.824 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001197/0.1141, allocations: 1.301 MB / 321.7 MB, free: 2.453 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001316/0.1143, allocations: 35.98 kB / 321.8 MB, free: 2.418 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003633/0.1146, allocations: 43.98 kB / 321.8 MB, free: 2.375 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001143/0.1147, allocations: 109 kB / 321.9 MB, free: 2.27 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.883e-05/0.1148, allocations: 35.98 kB / 321.9 MB, free: 2.234 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0004738/0.1153, allocations: 0.6023 MB / 322.5 MB, free: 1.637 MB / 314.7 MB Notification: Performance of sort global known variables: time 7e-08/0.1153, allocations: 4.031 kB / 322.6 MB, free: 1.633 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001189/0.1165, allocations: 0.539 MB / 323.1 MB, free: 1.094 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 12 * 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 (166): * Single equations (assignments): 163 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 2 * Torn equation systems: 1 * 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): 1 system {(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.0002774/0.1167, allocations: 168.1 kB / 323.3 MB, free: 0.9219 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001175/0.1179, allocations: 1.056 MB / 324.3 MB, free: 15.85 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 5.061e-05/0.118, allocations: 36.44 kB / 324.3 MB, free: 15.81 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005859/0.1185, allocations: 0.6474 MB / 325 MB, free: 15.14 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002227/0.1208, allocations: 4.576 MB / 329.6 MB, free: 9.672 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01872/0.1395, allocations: 5.111 MB / 334.7 MB, free: 4.465 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005802/0.1401, allocations: 0.6277 MB / 335.3 MB, free: 3.816 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0009505/0.141, allocations: 293.4 kB / 335.6 MB, free: 3.527 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007684/0.1418, allocations: 499.1 kB / 336.1 MB, free: 3.031 MB / 330.7 MB Notification: Performance of SimCode: time 2.124e-06/0.1418, allocations: 0 / 336.1 MB, free: 3.031 MB / 330.7 MB Notification: Performance of Templates: time 0.1396/0.2814, allocations: 27.15 MB / 363.2 MB, free: 60.35 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FundamentalWave.Examples.BasicMachines.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FundamentalWave/Examples/BasicMachines/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.308947035111487]