Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.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.001184/0.001184, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001812/0.002996, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.001136/0.001136, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001486/0.002622, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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.009/1.009, allocations: 177.2 MB / 189.6 MB, free: 5.316 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.1039/1.113, allocations: 53.66 MB / 243.3 MB, free: 15.58 MB / 250.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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.114e-06/2.114e-06, allocations: 0 / 244.5 MB, free: 14.32 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.554e-05/2.765e-05, allocations: 6.25 kB / 244.5 MB, free: 14.31 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.02313/0.02315, allocations: 10.65 MB / 255.2 MB, free: 3.609 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.0102/0.03335, allocations: 3.761 MB / 258.9 MB, free: 15.83 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001781/0.03513, allocations: 83.44 kB / 259 MB, free: 15.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001662/0.03679, allocations: 0.8344 MB / 259.9 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002391/0.03918, allocations: 0.9429 MB / 260.8 MB, free: 13.96 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00085/0.04003, allocations: 463.2 kB / 261.3 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002648/0.04268, allocations: 3.054 MB / 264.3 MB, free: 10.44 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001563/0.04425, allocations: 1.556 MB / 265.9 MB, free: 8.805 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.003217/0.04746, allocations: 2.672 MB / 268.5 MB, free: 6.113 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001619/0.04908, allocations: 1.496 MB / 270 MB, free: 4.613 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0005058/0.04959, allocations: 359.9 kB / 270.4 MB, free: 4.262 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0007286/0.05032, allocations: 475.7 kB / 270.9 MB, free: 3.797 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.000623/0.05094, allocations: 0.865 MB / 271.7 MB, free: 2.93 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009704/0.05191, allocations: 0.9123 MB / 272.6 MB, free: 2.016 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.1122/0.1641, allocations: 2.458 MB / 275.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.686e-05/0.1641, allocations: 0 / 275.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.633e-06/0.1641, allocations: 0 / 275.1 MB, free: 8.848 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001502/0.1643, allocations: 0 / 275.1 MB, free: 8.848 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.004633/0.1689, allocations: 3.688 MB / 278.8 MB, free: 7.574 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.208e-05/0.1689, allocations: 15.36 kB / 278.8 MB, free: 7.57 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009572/0.1699, allocations: 0.5206 MB / 279.3 MB, free: 7.473 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001954/0.1719, allocations: 1.303 MB / 280.6 MB, free: 6.992 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000102/0.172, allocations: 195.3 kB / 280.8 MB, free: 6.984 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002541/0.1722, allocations: 249.2 kB / 281 MB, free: 6.98 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002421/0.1746, allocations: 1.859 MB / 282.9 MB, free: 6.652 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.972e-05/0.1747, allocations: 5.703 kB / 282.9 MB, free: 6.652 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001352/0.1748, allocations: 105.3 kB / 283 MB, free: 6.648 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.827e-05/0.1749, allocations: 122.2 kB / 283.1 MB, free: 6.641 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001236/0.1762, allocations: 0.7492 MB / 283.9 MB, free: 6.547 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007185/0.1833, allocations: 6.928 MB / 290.8 MB, free: 3.746 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005909/0.1839, allocations: 0.5191 MB / 291.3 MB, free: 3.66 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003062/0.1842, allocations: 259.1 kB / 291.6 MB, free: 3.648 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001592/0.1844, allocations: 55.36 kB / 291.6 MB, free: 3.648 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.181e-05/0.1844, allocations: 46.5 kB / 291.7 MB, free: 3.609 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.184e-06/0.1844, allocations: 0 / 291.7 MB, free: 3.609 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.004752/0.1892, allocations: 2.966 MB / 294.7 MB, free: 3.016 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.197e-05/0.1892, allocations: 63.84 kB / 294.7 MB, free: 2.949 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006781/0.1899, allocations: 1.175 MB / 295.9 MB, free: 2.746 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 4.901e-05/0.1899, allocations: 42.8 kB / 295.9 MB, free: 2.715 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003282/0.1903, allocations: 1.095 MB / 297 MB, free: 2.062 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001824/0.1904, allocations: 447.6 kB / 297.5 MB, free: 1.777 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002463/0.1907, allocations: 281.3 kB / 297.7 MB, free: 1.746 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.723e-05/0.1907, allocations: 308.2 kB / 298 MB, free: 1.445 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000205/0.1909, allocations: 180.8 kB / 298.2 MB, free: 1.43 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003064/0.1912, allocations: 0.672 MB / 298.9 MB, free: 0.8242 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006601/0.1919, allocations: 1.055 MB / 299.9 MB, free: 168 kB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.869e-06/0.1919, allocations: 3.719 kB / 299.9 MB, free: 168 kB / 266.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.001338/0.1932, allocations: 1.059 MB / 301 MB, free: 15.81 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.304e-05/0.1933, allocations: 12 kB / 301 MB, free: 15.8 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.23e-05/0.1933, allocations: 19.98 kB / 301 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002482/0.1935, allocations: 127.6 kB / 301.2 MB, free: 15.64 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000799/0.1943, allocations: 403.6 kB / 301.6 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001207/0.1955, allocations: 2.429 MB / 304 MB, free: 12.7 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005965/0.1961, allocations: 59.91 kB / 304 MB, free: 12.64 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.364e-05/0.1962, allocations: 59.98 kB / 304.1 MB, free: 12.58 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.0004101/0.1966, allocations: 230.6 kB / 304.3 MB, free: 12.38 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001784/0.1968, allocations: 143.8 kB / 304.5 MB, free: 12.23 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009153/0.1977, allocations: 0.7588 MB / 305.2 MB, free: 11.45 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.1977, allocations: 12 kB / 305.2 MB, free: 11.44 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.1977, allocations: 4 kB / 305.2 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.046e-06/0.1977, allocations: 3.984 kB / 305.2 MB, free: 11.43 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002603/0.2003, allocations: 2.135 MB / 307.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.719e-06/0.2003, allocations: 0 / 307.4 MB, free: 9.445 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000552/0.2009, allocations: 242.4 kB / 307.6 MB, free: 9.219 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003181/0.2012, allocations: 228.8 kB / 307.8 MB, free: 9 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002638/0.2015, allocations: 148.4 kB / 308 MB, free: 8.84 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.746e-05/0.2015, allocations: 27.98 kB / 308 MB, free: 8.812 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001035/0.2025, allocations: 2.402 MB / 310.4 MB, free: 6.254 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.037e-06/0.2026, allocations: 7.375 kB / 310.4 MB, free: 6.25 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001152/0.2037, allocations: 1.11 MB / 311.5 MB, free: 5.098 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001265/0.2038, allocations: 23.98 kB / 311.6 MB, free: 5.074 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003358/0.2042, allocations: 40.05 kB / 311.6 MB, free: 5.035 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001095/0.2043, allocations: 84.03 kB / 311.7 MB, free: 4.953 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.363e-05/0.2043, allocations: 27.98 kB / 311.7 MB, free: 4.926 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.00048/0.2048, allocations: 0.5741 MB / 312.3 MB, free: 4.422 MB / 282.7 MB Notification: Performance of sort global known variables: time 3e-08/0.2048, allocations: 0 / 312.3 MB, free: 4.422 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.00101/0.2058, allocations: 467.9 kB / 312.7 MB, free: 3.965 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.0002854/0.2061, allocations: 181.1 kB / 312.9 MB, free: 3.793 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.001219/0.2073, allocations: 0.989 MB / 313.9 MB, free: 2.855 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 4.711e-05/0.2074, allocations: 36.42 kB / 313.9 MB, free: 2.82 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005294/0.2079, allocations: 0.5983 MB / 314.5 MB, free: 2.234 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0011/0.209, allocations: 0.5708 MB / 315.1 MB, free: 1.684 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01444/0.2234, allocations: 4.211 MB / 319.3 MB, free: 13.42 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005462/0.224, allocations: 0.5806 MB / 319.9 MB, free: 12.81 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007687/0.2247, allocations: 251 kB / 320.1 MB, free: 12.56 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007544/0.2255, allocations: 454.7 kB / 320.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2255, allocations: 2.188 kB / 320.6 MB, free: 12.11 MB / 298.7 MB Notification: Performance of Templates: time 0.03393/0.2594, allocations: 26.06 MB / 346.6 MB, free: 2.547 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_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,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.3154691141098738]