Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.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.001021/0.001021, allocations: 79.91 kB / 21.18 MB, free: 3.391 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.0009811/0.0009811, allocations: 145.1 kB / 24.54 MB, free: 36 kB / 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.051/1.051, allocations: 173.3 MB / 201.1 MB, free: 9.344 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_CurrentSource,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|smpm.is.[0-9,]+.|inertiaLoad.w|multiSensor.flange_a.phi",fileNamePrefix="Modelica_4.0.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.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 5.04e-06/5.04e-06, allocations: 3.984 kB / 268 MB, free: 6.434 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.476e-05/3.98e-05, allocations: 6.25 kB / 268 MB, free: 6.426 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01032/0.01036, allocations: 10.79 MB / 278.8 MB, free: 11.58 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007057/0.01742, allocations: 3.563 MB / 282.4 MB, free: 8.008 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001764/0.01918, allocations: 83.44 kB / 282.4 MB, free: 7.926 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001825/0.021, allocations: 0.811 MB / 283.3 MB, free: 7.109 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002544/0.02355, allocations: 0.9585 MB / 284.2 MB, free: 6.145 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009387/0.02449, allocations: 459.2 kB / 284.7 MB, free: 5.695 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003161/0.02765, allocations: 3.042 MB / 287.7 MB, free: 2.641 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001805/0.02945, allocations: 1.521 MB / 289.2 MB, free: 1.055 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1237/0.1531, allocations: 2.495 MB / 291.7 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002324/0.1555, allocations: 1.493 MB / 293.2 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0008539/0.1563, allocations: 358.2 kB / 293.6 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0009001/0.1572, allocations: 457.3 kB / 294 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007738/0.158, allocations: 1.061 MB / 295.1 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001204/0.1592, allocations: 1.104 MB / 296.2 MB, free: 16.89 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002637/0.1618, allocations: 2.607 MB / 298.8 MB, free: 16.65 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.461e-06/0.1618, allocations: 1.031 kB / 298.8 MB, free: 16.65 MB / 266.7 MB Notification: Performance of FrontEnd: time 2.264e-06/0.1618, allocations: 1.094 kB / 298.8 MB, free: 16.65 MB / 266.7 MB Notification: Performance of Transformations before backend: time 4.48e-05/0.1619, allocations: 0 / 298.8 MB, free: 16.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: 659 * Number of variables: 659 Notification: Performance of Generate backend data structure: time 0.003946/0.1658, allocations: 3.462 MB / 302.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.34e-05/0.1659, allocations: 11.17 kB / 302.3 MB, free: 15.16 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008906/0.1668, allocations: 0.5493 MB / 302.8 MB, free: 14.98 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001729/0.1685, allocations: 1.766 MB / 304.6 MB, free: 14.48 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.539e-05/0.1686, allocations: 187.1 kB / 304.8 MB, free: 14.45 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002381/0.1688, allocations: 254.3 kB / 305 MB, free: 14.37 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002506/0.1713, allocations: 1.983 MB / 307 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.899e-05/0.1714, allocations: 3.312 kB / 307 MB, free: 13.56 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000151/0.1715, allocations: 107.4 kB / 307.1 MB, free: 13.48 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.612e-05/0.1716, allocations: 126.1 kB / 307.2 MB, free: 13.46 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00155/0.1732, allocations: 0.9323 MB / 308.2 MB, free: 13.31 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007552/0.1807, allocations: 8.504 MB / 316.7 MB, free: 6.977 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000747/0.1815, allocations: 0.5725 MB / 317.2 MB, free: 6.398 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004113/0.1819, allocations: 336.8 kB / 317.6 MB, free: 6.062 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001565/0.182, allocations: 56.25 kB / 317.6 MB, free: 6.012 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.289e-05/0.1821, allocations: 46.39 kB / 317.7 MB, free: 5.957 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 4.127e-06/0.1821, allocations: 0 / 317.7 MB, free: 5.957 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.005089/0.1871, allocations: 3.536 MB / 321.2 MB, free: 2.414 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.415e-05/0.1872, allocations: 64.41 kB / 321.3 MB, free: 2.34 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001117/0.1883, allocations: 1.419 MB / 322.7 MB, free: 0.9023 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.05e-05/0.1883, allocations: 45.7 kB / 322.7 MB, free: 0.8516 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007165/0.1891, allocations: 1.411 MB / 324.1 MB, free: 15.43 MB / 282.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002585/0.1893, allocations: 446.4 kB / 324.6 MB, free: 15 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002984/0.1896, allocations: 301.1 kB / 324.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0001084/0.1897, allocations: 484.7 kB / 325.3 MB, free: 14.22 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000412/0.1901, allocations: 238.8 kB / 325.6 MB, free: 13.99 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007158/0.1908, allocations: 0.9757 MB / 326.5 MB, free: 12.71 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001517/0.1924, allocations: 1.361 MB / 327.9 MB, free: 11.1 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.428e-06/0.1924, allocations: 4 kB / 327.9 MB, free: 11.1 MB / 282.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.002167/0.1945, allocations: 1.421 MB / 329.3 MB, free: 9.762 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.571e-05/0.1946, allocations: 12.69 kB / 329.3 MB, free: 9.75 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.979e-05/0.1946, allocations: 19.94 kB / 329.4 MB, free: 9.73 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003104/0.1949, allocations: 130.2 kB / 329.5 MB, free: 9.59 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008297/0.1957, allocations: 392.5 kB / 329.9 MB, free: 9.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001758/0.1975, allocations: 3.562 MB / 333.4 MB, free: 5.457 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009033/0.1984, allocations: 99.95 kB / 333.5 MB, free: 5.359 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.524e-05/0.1985, allocations: 72 kB / 333.6 MB, free: 5.289 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.0008939/0.1994, allocations: 258.1 kB / 333.9 MB, free: 5.051 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000267/0.1996, allocations: 226.8 kB / 334.1 MB, free: 4.828 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001852/0.2015, allocations: 1.013 MB / 335.1 MB, free: 3.793 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.408e-06/0.2015, allocations: 12 kB / 335.1 MB, free: 3.781 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.735e-06/0.2015, allocations: 3.938 kB / 335.1 MB, free: 3.777 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.253e-05/0.2015, allocations: 7.969 kB / 335.1 MB, free: 3.77 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00484/0.2064, allocations: 3.047 MB / 338.2 MB, free: 0.6719 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.2064, allocations: 4 kB / 338.2 MB, free: 0.668 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005868/0.2069, allocations: 236.3 kB / 338.4 MB, free: 460 kB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002657/0.2072, allocations: 116.2 kB / 338.5 MB, free: 328 kB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.041e-05/0.2073, allocations: 23.98 kB / 338.5 MB, free: 304 kB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00193/0.2092, allocations: 3.534 MB / 342.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.274e-06/0.2092, allocations: 2.156 kB / 342.1 MB, free: 12.53 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001965/0.2112, allocations: 1.475 MB / 343.5 MB, free: 10.99 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000547/0.2117, allocations: 294.7 kB / 343.8 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001253/0.2119, allocations: 20 kB / 343.9 MB, free: 10.68 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004218/0.2123, allocations: 71.86 kB / 343.9 MB, free: 10.61 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001295/0.2124, allocations: 79.38 kB / 344 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.667e-05/0.2125, allocations: 35.98 kB / 344 MB, free: 10.5 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001008/0.2135, allocations: 0.8016 MB / 344.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of sort global known variables: time 2.8e-07/0.2135, allocations: 32 / 344.8 MB, free: 9.699 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001369/0.2148, allocations: 471.9 kB / 345.3 MB, free: 9.238 MB / 298.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.0003385/0.2152, allocations: 193.4 kB / 345.5 MB, free: 9.055 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.001706/0.2169, allocations: 1.295 MB / 346.8 MB, free: 7.773 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.829e-06/0.2169, allocations: 5 kB / 346.8 MB, free: 7.77 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0007628/0.2176, allocations: 0.8112 MB / 347.6 MB, free: 6.941 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001231/0.2189, allocations: 452.8 kB / 348 MB, free: 6.512 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006379/0.2253, allocations: 4.162 MB / 352.2 MB, free: 2.266 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005479/0.2258, allocations: 0.6456 MB / 352.8 MB, free: 1.594 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0009242/0.2267, allocations: 390.8 kB / 353.2 MB, free: 1.207 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002753/0.227, allocations: 124.5 kB / 353.3 MB, free: 1.086 MB / 298.7 MB Notification: Performance of SimCode: time 1.944e-06/0.227, allocations: 0 / 353.3 MB, free: 1.086 MB / 298.7 MB Notification: Performance of Templates: time 0.0336/0.2606, allocations: 24.2 MB / 377.5 MB, free: 9.316 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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.4807527931407094]