Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002551/0.002551, allocations: 103.5 kB / 20.97 MB, free: 3.453 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001935/0.001935, allocations: 156.8 kB / 24.27 MB, free: 160 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.578/1.578, allocations: 177 MB / 204.5 MB, free: 5.621 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=20000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.244e-06/2.244e-06, allocations: 0 / 272.2 MB, free: 1.789 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.745e-05/3.969e-05, allocations: 2.312 kB / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.02529/0.02533, allocations: 11.99 MB / 284.2 MB, free: 5.734 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.009266/0.0346, allocations: 3.257 MB / 287.5 MB, free: 2.465 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001793/0.03639, allocations: 43.81 kB / 287.5 MB, free: 2.422 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002211/0.0386, allocations: 0.6439 MB / 288.2 MB, free: 1.773 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002903/0.04151, allocations: 0.8101 MB / 289 MB, free: 0.957 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001037/0.04254, allocations: 415.4 kB / 289.4 MB, free: 0.5508 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1326/0.1752, allocations: 2.497 MB / 291.9 MB, free: 16.5 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001165/0.1764, allocations: 0.6037 MB / 292.5 MB, free: 16.37 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002397/0.1788, allocations: 1.416 MB / 293.9 MB, free: 16.23 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001168/0.1799, allocations: 0.7693 MB / 294.7 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0003348/0.1803, allocations: 229.9 kB / 294.9 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005864/0.1808, allocations: 268.4 kB / 295.1 MB, free: 16.14 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0003073/0.1812, allocations: 470 kB / 295.6 MB, free: 16.06 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0009071/0.1821, allocations: 0.7436 MB / 296.4 MB, free: 15.97 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00348/0.1855, allocations: 2.856 MB / 299.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1855, allocations: 0 / 299.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.242e-06/0.1855, allocations: 0.5938 kB / 299.2 MB, free: 15.26 MB / 266.7 MB Notification: Performance of Transformations before backend: time 8.021e-05/0.1856, allocations: 1.094 kB / 299.2 MB, free: 15.26 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: 393 * Number of variables: 393 Notification: Performance of Generate backend data structure: time 0.004015/0.1896, allocations: 2.409 MB / 301.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.567e-05/0.1897, allocations: 10.72 kB / 301.6 MB, free: 13.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001057/0.1907, allocations: 423.5 kB / 302 MB, free: 13.57 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001813/0.1925, allocations: 1.093 MB / 303.1 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.832e-05/0.1926, allocations: 112.6 kB / 303.2 MB, free: 12.91 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002012/0.1928, allocations: 160.1 kB / 303.4 MB, free: 12.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002363/0.1952, allocations: 1.727 MB / 305.1 MB, free: 11.96 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.362e-05/0.1952, allocations: 10.44 kB / 305.1 MB, free: 11.95 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.000112/0.1954, allocations: 65.56 kB / 305.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.703e-05/0.1954, allocations: 39.41 kB / 305.2 MB, free: 11.9 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00171/0.1971, allocations: 1.002 MB / 306.2 MB, free: 11.46 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007403/0.2045, allocations: 7.426 MB / 313.7 MB, free: 5.809 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001288/0.2058, allocations: 0.5838 MB / 314.3 MB, free: 5.398 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007549/0.2065, allocations: 417.5 kB / 314.7 MB, free: 4.984 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.674e-05/0.2066, allocations: 12.66 kB / 314.7 MB, free: 4.969 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.937e-05/0.2066, allocations: 45.73 kB / 314.7 MB, free: 4.918 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.084e-06/0.2066, allocations: 0 / 314.7 MB, free: 4.918 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.003978/0.2106, allocations: 2.13 MB / 316.8 MB, free: 2.766 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.425e-05/0.2106, allocations: 115.5 kB / 317 MB, free: 2.629 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001361/0.212, allocations: 1.497 MB / 318.5 MB, free: 1.125 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.582e-05/0.212, allocations: 37.7 kB / 318.5 MB, free: 1.082 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004085/0.2124, allocations: 1.001 MB / 319.5 MB, free: 76 kB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002684/0.2127, allocations: 297.3 kB / 319.8 MB, free: 15.79 MB / 282.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003804/0.2131, allocations: 248.5 kB / 320 MB, free: 15.53 MB / 282.7 MB Notification: Performance of setup shared object (initialization): time 0.0003594/0.2134, allocations: 0.559 MB / 320.6 MB, free: 14.96 MB / 282.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000604/0.214, allocations: 270.5 kB / 320.9 MB, free: 14.7 MB / 282.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00154/0.2156, allocations: 1.005 MB / 321.9 MB, free: 13.4 MB / 282.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001928/0.2175, allocations: 1.298 MB / 323.2 MB, free: 11.88 MB / 282.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.546e-06/0.2175, allocations: 8 kB / 323.2 MB, free: 11.87 MB / 282.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002651/0.2202, allocations: 1.283 MB / 324.4 MB, free: 10.67 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.426e-05/0.2202, allocations: 20.03 kB / 324.5 MB, free: 10.65 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.293e-05/0.2202, allocations: 16 kB / 324.5 MB, free: 10.64 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008667/0.2211, allocations: 174.9 kB / 324.7 MB, free: 10.45 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009011/0.222, allocations: 248.5 kB / 324.9 MB, free: 10.23 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.00577/0.2278, allocations: 5.886 MB / 330.8 MB, free: 4.016 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001181/0.229, allocations: 51.94 kB / 330.8 MB, free: 3.965 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.815e-05/0.2291, allocations: 59.98 kB / 330.9 MB, free: 3.906 MB / 282.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 68 * 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 (137): * Single equations (assignments): 134 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(1,4)} Notification: Performance of prepare postOptimizeDAE: time 0.0008084/0.2299, allocations: 401 kB / 331.3 MB, free: 3.523 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002886/0.2302, allocations: 158.1 kB / 331.4 MB, free: 3.371 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001827/0.232, allocations: 0.7909 MB / 332.2 MB, free: 2.566 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.496e-06/0.232, allocations: 12 kB / 332.2 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.406e-06/0.232, allocations: 0 / 332.2 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.002e-05/0.232, allocations: 7.984 kB / 332.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004578/0.2366, allocations: 2.434 MB / 334.7 MB, free: 48 kB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.172e-05/0.2366, allocations: 8 kB / 334.7 MB, free: 40 kB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005987/0.2372, allocations: 123.1 kB / 334.8 MB, free: 15.93 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0007722/0.238, allocations: 190.8 kB / 335 MB, free: 15.73 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.549e-05/0.238, allocations: 23.98 kB / 335 MB, free: 15.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00603/0.244, allocations: 6.041 MB / 341.1 MB, free: 9.344 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.202e-06/0.2441, allocations: 4 kB / 341.1 MB, free: 9.34 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002806/0.2469, allocations: 1.366 MB / 342.4 MB, free: 7.891 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005645/0.2474, allocations: 191.1 kB / 342.6 MB, free: 7.703 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001559/0.2476, allocations: 27.92 kB / 342.6 MB, free: 7.676 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000583/0.2482, allocations: 31.98 kB / 342.7 MB, free: 7.645 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00016/0.2483, allocations: 67.98 kB / 342.7 MB, free: 7.582 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.905e-05/0.2484, allocations: 24 kB / 342.8 MB, free: 7.559 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.001669/0.25, allocations: 0.8934 MB / 343.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of sort global known variables: time 7e-08/0.25, allocations: 0 / 343.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.001423/0.2515, allocations: 331.9 kB / 344 MB, free: 6.336 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 16 * Number of states: 6 (dcpm1.inertiaRotor.w,dcpm1.la.i,loadTorque1.phi,dcpm2.inertiaRotor.w,dcpm2.la.i,loadTorque2.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 (63): * Single equations (assignments): 60 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 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): 1 system {(1,6)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002885/0.2518, allocations: 132 kB / 344.1 MB, free: 6.203 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002246/0.254, allocations: 1.324 MB / 345.4 MB, free: 4.879 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 7.825e-06/0.254, allocations: 4 kB / 345.4 MB, free: 4.875 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001198/0.2552, allocations: 0.855 MB / 346.3 MB, free: 3.98 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001625/0.2568, allocations: 354 kB / 346.6 MB, free: 3.656 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00537/0.2622, allocations: 2.85 MB / 349.5 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007819/0.263, allocations: 0.6337 MB / 350.1 MB, free: 48 kB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.000618/0.2636, allocations: 158.8 kB / 350.3 MB, free: 15.89 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002306/0.2638, allocations: 88.48 kB / 350.4 MB, free: 15.8 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.2638, allocations: 0 / 350.4 MB, free: 15.8 MB / 314.7 MB Notification: Performance of Templates: time 0.03466/0.2985, allocations: 17.35 MB / 367.7 MB, free: 14.78 MB / 330.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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: 5.6113576859934255]