Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.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.002302/0.002302, allocations: 95.86 kB / 20.96 MB, free: 3.465 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.002191/0.002191, allocations: 153.1 kB / 24.27 MB, free: 168 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.536/1.536, allocations: 173.3 MB / 200.8 MB, free: 9.328 MB / 186.7 MB " [Timeout remaining time 178] 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.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.473e-06/1.473e-06, allocations: 0 / 267.3 MB, free: 6.746 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.483e-05/2.63e-05, allocations: 2.312 kB / 267.3 MB, free: 6.742 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start): time 0.01026/0.01029, allocations: 7.074 MB / 274.4 MB, free: 15.63 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.004659/0.01495, allocations: 2.298 MB / 276.7 MB, free: 13.32 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006498/0.0156, allocations: 27.88 kB / 276.7 MB, free: 13.29 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001382/0.01698, allocations: 480.8 kB / 277.2 MB, free: 12.82 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.01805, allocations: 428.7 kB / 277.6 MB, free: 12.4 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004456/0.01849, allocations: 199.8 kB / 277.8 MB, free: 12.2 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.001628/0.02012, allocations: 1.253 MB / 279.1 MB, free: 10.95 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005907/0.02071, allocations: 320.5 kB / 279.4 MB, free: 10.61 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001022/0.02174, allocations: 0.6976 MB / 280.1 MB, free: 9.91 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006927/0.02243, allocations: 394.8 kB / 280.5 MB, free: 9.523 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001986/0.02263, allocations: 116 kB / 280.6 MB, free: 9.41 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003937/0.02302, allocations: 148 kB / 280.7 MB, free: 9.266 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002785/0.0233, allocations: 239.1 kB / 280.9 MB, free: 9.031 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005163/0.02382, allocations: 383.1 kB / 281.3 MB, free: 8.656 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001968/0.02578, allocations: 1.437 MB / 282.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.348e-06/0.02579, allocations: 0 / 282.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.193e-06/0.02579, allocations: 0 / 282.8 MB, free: 7.215 MB / 266.7 MB Notification: Performance of Transformations before backend: time 1.791e-05/0.02581, allocations: 0 / 282.8 MB, free: 7.215 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: 200 * Number of variables: 200 Notification: Performance of Generate backend data structure: time 0.002449/0.02826, allocations: 1.387 MB / 284.1 MB, free: 5.789 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.266e-05/0.0283, allocations: 12.03 kB / 284.2 MB, free: 5.777 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006154/0.02891, allocations: 216.2 kB / 284.4 MB, free: 5.566 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001135/0.03005, allocations: 0.6059 MB / 285 MB, free: 4.93 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.257e-05/0.03011, allocations: 58.38 kB / 285 MB, free: 4.875 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001423/0.03025, allocations: 84.33 kB / 285.1 MB, free: 4.793 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00156/0.03181, allocations: 0.8835 MB / 286 MB, free: 3.855 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.459e-05/0.03185, allocations: 8.188 kB / 286 MB, free: 3.848 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.423e-05/0.03192, allocations: 35.94 kB / 286 MB, free: 3.812 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.922e-05/0.03194, allocations: 20 kB / 286.1 MB, free: 3.793 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001054/0.033, allocations: 0.4996 MB / 286.6 MB, free: 3.297 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.1438/0.1768, allocations: 3.978 MB / 290.5 MB, free: 30.88 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005885/0.1774, allocations: 217.2 kB / 290.7 MB, free: 30.84 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002139/0.1776, allocations: 102.8 kB / 290.8 MB, free: 30.83 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.039e-05/0.1776, allocations: 5.594 kB / 290.9 MB, free: 30.83 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.534e-05/0.1777, allocations: 43.83 kB / 290.9 MB, free: 30.79 MB / 266.7 MB Notification: Performance of pre-optimization done (n=25): time 2.214e-06/0.1777, allocations: 0.6562 kB / 290.9 MB, free: 30.79 MB / 266.7 MB Notification: Performance of matching and sorting (n=28): time 0.002049/0.1797, allocations: 0.8714 MB / 291.8 MB, free: 30.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.255e-05/0.1798, allocations: 88.84 kB / 291.9 MB, free: 30.41 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001112/0.1809, allocations: 0.8814 MB / 292.7 MB, free: 30.21 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 2.243e-05/0.1809, allocations: 30.73 kB / 292.8 MB, free: 30.18 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004524/0.1813, allocations: 0.6061 MB / 293.4 MB, free: 29.85 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 8.714e-05/0.1814, allocations: 118 kB / 293.5 MB, free: 29.78 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002089/0.1816, allocations: 140.6 kB / 293.6 MB, free: 29.69 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0002872/0.1819, allocations: 0.592 MB / 294.2 MB, free: 29.15 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002994/0.1822, allocations: 115.8 kB / 294.3 MB, free: 29.11 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005915/0.1828, allocations: 0.5731 MB / 294.9 MB, free: 28.48 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007094/0.1835, allocations: 0.7006 MB / 295.6 MB, free: 27.83 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.693e-06/0.1835, allocations: 2.219 kB / 295.6 MB, free: 27.83 MB / 266.7 MB Notification: Performance of matching and sorting (n=74) (initialization): time 0.00116/0.1847, allocations: 0.6205 MB / 296.2 MB, free: 27.56 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.955e-05/0.1847, allocations: 16.78 kB / 296.2 MB, free: 27.55 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.017e-05/0.1848, allocations: 10.81 kB / 296.3 MB, free: 27.55 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002013/0.185, allocations: 32.77 kB / 296.3 MB, free: 27.54 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004713/0.1854, allocations: 141.4 kB / 296.4 MB, free: 27.52 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009215/0.1863, allocations: 1.785 MB / 298.2 MB, free: 25.75 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006565/0.187, allocations: 26.45 kB / 298.2 MB, free: 25.74 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.701e-05/0.1871, allocations: 36.47 kB / 298.3 MB, free: 25.73 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 44 * 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 (73): * Single equations (assignments): 72 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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.000427/0.1875, allocations: 282.4 kB / 298.5 MB, free: 25.5 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001522/0.1876, allocations: 84.66 kB / 298.6 MB, free: 25.45 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007294/0.1884, allocations: 295.1 kB / 298.9 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.752e-06/0.1884, allocations: 4.828 kB / 298.9 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.1884, allocations: 1.156 kB / 298.9 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.315e-06/0.1884, allocations: 6.922 kB / 298.9 MB, free: 25.31 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002213/0.1906, allocations: 1.173 MB / 300.1 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.743e-06/0.1906, allocations: 3.219 kB / 300.1 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002568/0.1909, allocations: 57.41 kB / 300.2 MB, free: 24.57 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001199/0.191, allocations: 27.89 kB / 300.2 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.137e-05/0.191, allocations: 10.84 kB / 300.2 MB, free: 24.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007505/0.1918, allocations: 1.762 MB / 302 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.125e-06/0.1918, allocations: 1.625 kB / 302 MB, free: 22.77 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008779/0.1926, allocations: 0.6111 MB / 302.6 MB, free: 22.34 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002342/0.1929, allocations: 91.23 kB / 302.7 MB, free: 22.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.732e-05/0.193, allocations: 13.31 kB / 302.7 MB, free: 22.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002785/0.1932, allocations: 13.98 kB / 302.7 MB, free: 22.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001003/0.1933, allocations: 36.3 kB / 302.7 MB, free: 22.26 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.997e-05/0.1934, allocations: 8.672 kB / 302.7 MB, free: 22.26 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0007259/0.1941, allocations: 0.5396 MB / 303.3 MB, free: 22 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1941, allocations: 0 / 303.3 MB, free: 22 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.000879/0.195, allocations: 156.8 kB / 303.4 MB, free: 21.99 MB / 266.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 3 (dcpm.inertiaRotor.w,dcpm.la.i,loadInertia.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 (27): * Single equations (assignments): 26 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 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.000216/0.1952, allocations: 122.3 kB / 303.5 MB, free: 21.89 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0009153/0.1961, allocations: 0.5306 MB / 304.1 MB, free: 21.58 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1961, allocations: 1.406 kB / 304.1 MB, free: 21.58 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003375/0.1964, allocations: 302 kB / 304.4 MB, free: 21.36 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/0.1973, allocations: 175.3 kB / 304.5 MB, free: 21.32 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00216/0.1995, allocations: 1.392 MB / 305.9 MB, free: 20.43 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004045/0.1999, allocations: 353.2 kB / 306.3 MB, free: 20.31 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0003056/0.2002, allocations: 84.88 kB / 306.4 MB, free: 20.29 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001177/0.2003, allocations: 44.77 kB / 306.4 MB, free: 20.29 MB / 266.7 MB Notification: Performance of SimCode: time 1.503e-06/0.2003, allocations: 1.375 kB / 306.4 MB, free: 20.29 MB / 266.7 MB Notification: Performance of Templates: time 0.01365/0.214, allocations: 7.991 MB / 314.4 MB, free: 15.01 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.makefile [Timeout 660] (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_Start/DCPM_Start.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_Start.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.8331120680086315]