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.001785/0.001785, allocations: 85.17 kB / 21.5 MB, free: 2.992 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.001149/0.001149, allocations: 147.1 kB / 24.89 MB, free: 8.742 MB / 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 0.9224/0.9224, allocations: 173.4 MB / 201.5 MB, free: 8.742 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 1.433e-06/1.433e-06, allocations: 0 / 268.5 MB, free: 6.031 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.075e-05/2.218e-05, allocations: 2.312 kB / 268.5 MB, free: 6.027 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.SynchronousMachines.SMPM_CurrentSource): time 0.01224/0.01226, allocations: 10.5 MB / 279 MB, free: 11.48 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007617/0.01987, allocations: 3.679 MB / 282.7 MB, free: 7.789 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001827/0.0217, allocations: 87.38 kB / 282.7 MB, free: 7.703 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002202/0.0239, allocations: 0.8188 MB / 283.6 MB, free: 6.879 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.003041/0.02694, allocations: 0.9507 MB / 284.5 MB, free: 5.922 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001184/0.02813, allocations: 467.2 kB / 285 MB, free: 5.465 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.003348/0.03148, allocations: 3.045 MB / 288 MB, free: 2.41 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001379/0.03286, allocations: 1.548 MB / 289.6 MB, free: 0.7773 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.1062/0.139, allocations: 2.464 MB / 292 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.002034/0.1411, allocations: 1.5 MB / 293.5 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0007402/0.1418, allocations: 359.5 kB / 293.9 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008443/0.1426, allocations: 459.4 kB / 294.3 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0007927/0.1434, allocations: 1.054 MB / 295.4 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.001568/0.145, allocations: 1.104 MB / 296.5 MB, free: 17.61 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002963/0.148, allocations: 2.608 MB / 299.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.148, allocations: 0 / 299.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.744e-06/0.148, allocations: 0 / 299.1 MB, free: 17.3 MB / 266.7 MB Notification: Performance of Transformations before backend: time 0.0001073/0.1481, allocations: 0 / 299.1 MB, free: 17.3 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.003936/0.152, allocations: 3.101 MB / 302.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.14e-05/0.152, allocations: 10.52 kB / 302.2 MB, free: 15.94 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000656/0.1527, allocations: 441.6 kB / 302.6 MB, free: 15.93 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001433/0.1541, allocations: 1.306 MB / 303.9 MB, free: 15.43 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.8e-05/0.1542, allocations: 188.4 kB / 304.1 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002206/0.1544, allocations: 251.2 kB / 304.4 MB, free: 15.42 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001712/0.1561, allocations: 1.86 MB / 306.2 MB, free: 14.87 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.727e-05/0.1562, allocations: 7.656 kB / 306.2 MB, free: 14.86 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001486/0.1563, allocations: 108.8 kB / 306.3 MB, free: 14.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.027e-05/0.1564, allocations: 121.6 kB / 306.5 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000981/0.1574, allocations: 0.7471 MB / 307.2 MB, free: 14.62 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005659/0.163, allocations: 6.883 MB / 314.1 MB, free: 10.25 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005309/0.1636, allocations: 0.5247 MB / 314.6 MB, free: 9.734 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002811/0.1639, allocations: 262.6 kB / 314.9 MB, free: 9.477 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001583/0.164, allocations: 56.33 kB / 314.9 MB, free: 9.426 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.493e-05/0.164, allocations: 43.56 kB / 315 MB, free: 9.375 MB / 266.7 MB Notification: Performance of pre-optimization done (n=98): time 2.334e-06/0.164, allocations: 0 / 315 MB, free: 9.375 MB / 266.7 MB Notification: Performance of matching and sorting (n=123): time 0.00422/0.1683, allocations: 2.946 MB / 317.9 MB, free: 6.453 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 1.937e-05/0.1683, allocations: 68.34 kB / 318 MB, free: 6.371 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006538/0.1689, allocations: 1.171 MB / 319.2 MB, free: 5.414 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.1e-05/0.169, allocations: 45.7 kB / 319.2 MB, free: 5.363 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002659/0.1693, allocations: 1.103 MB / 320.3 MB, free: 4.324 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001472/0.1694, allocations: 440.9 kB / 320.7 MB, free: 3.918 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000216/0.1696, allocations: 279.9 kB / 321 MB, free: 3.668 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 2.289e-05/0.1696, allocations: 301.1 kB / 321.3 MB, free: 3.371 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002046/0.1698, allocations: 182.8 kB / 321.5 MB, free: 3.191 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002922/0.1701, allocations: 0.6748 MB / 322.2 MB, free: 2.332 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0006331/0.1708, allocations: 1.047 MB / 323.2 MB, free: 1.16 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.671e-06/0.1708, allocations: 8 kB / 323.2 MB, free: 1.152 MB / 266.7 MB Notification: Performance of matching and sorting (n=203) (initialization): time 0.0009461/0.1717, allocations: 1.034 MB / 324.2 MB, free: 212 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.1717, allocations: 12.66 kB / 324.3 MB, free: 200 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.192e-05/0.1718, allocations: 16 kB / 324.3 MB, free: 184 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002122/0.172, allocations: 126.9 kB / 324.4 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000674/0.1726, allocations: 353.9 kB / 324.7 MB, free: 15.72 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001103/0.1737, allocations: 2.422 MB / 327.2 MB, free: 13.15 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004483/0.1742, allocations: 67.98 kB / 327.2 MB, free: 13.08 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.751e-05/0.1743, allocations: 52 kB / 327.3 MB, free: 13.03 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.0003465/0.1746, allocations: 236.2 kB / 327.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001722/0.1748, allocations: 139.9 kB / 327.6 MB, free: 12.68 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008738/0.1757, allocations: 0.7647 MB / 328.4 MB, free: 11.9 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.283e-06/0.1757, allocations: 12 kB / 328.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.907e-06/0.1757, allocations: 4 kB / 328.4 MB, free: 11.89 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.265e-06/0.1757, allocations: 7.969 kB / 328.4 MB, free: 11.88 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002368/0.178, allocations: 2.115 MB / 330.5 MB, free: 9.91 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.178, allocations: 4 kB / 330.6 MB, free: 9.906 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004672/0.1785, allocations: 207 kB / 330.8 MB, free: 9.715 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002563/0.1788, allocations: 149 kB / 330.9 MB, free: 9.551 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.05e-05/0.1788, allocations: 35.08 kB / 330.9 MB, free: 9.52 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009542/0.1798, allocations: 2.393 MB / 333.3 MB, free: 6.965 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.256e-06/0.1798, allocations: 7.75 kB / 333.3 MB, free: 6.961 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001106/0.1809, allocations: 1.113 MB / 334.4 MB, free: 5.809 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002986/0.1812, allocations: 226.4 kB / 334.7 MB, free: 5.59 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001167/0.1813, allocations: 27.98 kB / 334.7 MB, free: 5.562 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003235/0.1816, allocations: 39.92 kB / 334.7 MB, free: 5.523 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.165e-05/0.1817, allocations: 80.84 kB / 334.8 MB, free: 5.441 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.275e-05/0.1818, allocations: 27.98 kB / 334.8 MB, free: 5.414 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000529/0.1823, allocations: 0.5734 MB / 335.4 MB, free: 4.91 MB / 282.7 MB Notification: Performance of sort global known variables: time 9.1e-08/0.1823, allocations: 0 / 335.4 MB, free: 4.91 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0007763/0.1831, allocations: 468 kB / 335.9 MB, free: 4.453 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.0002409/0.1833, allocations: 179.2 kB / 336 MB, free: 4.285 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.0009726/0.1843, allocations: 0.98 MB / 337 MB, free: 3.352 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 2.87e-05/0.1843, allocations: 30.59 kB / 337.1 MB, free: 3.324 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005087/0.1848, allocations: 0.5864 MB / 337.6 MB, free: 2.742 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001008/0.1858, allocations: 449.4 kB / 338.1 MB, free: 2.316 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004403/0.1902, allocations: 4.077 MB / 342.2 MB, free: 14.19 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000448/0.1907, allocations: 0.579 MB / 342.7 MB, free: 13.59 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000532/0.1912, allocations: 247 kB / 343 MB, free: 13.34 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0007019/0.1919, allocations: 447.1 kB / 343.4 MB, free: 12.9 MB / 298.7 MB Notification: Performance of SimCode: time 8.42e-07/0.1919, allocations: 8 kB / 343.4 MB, free: 12.89 MB / 298.7 MB Notification: Performance of Templates: time 0.02936/0.2213, allocations: 24.78 MB / 368.2 MB, free: 4.602 MB / 314.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.1644815313629806]