Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.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.001762/0.001762, allocations: 88.31 kB / 20.96 MB, free: 3.477 MB / 18.57 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.001598/0.001598, allocations: 161.7 kB / 24.27 MB, free: 172 kB / 18.57 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.46/1.46, allocations: 177.1 MB / 204.6 MB, free: 5.594 MB / 186.7 MB " [Timeout remaining time 178] 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.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_4.1.0_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_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.382e-06/1.382e-06, allocations: 0 / 272.3 MB, free: 1.805 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.507e-05/2.645e-05, allocations: 2.312 kB / 272.3 MB, free: 1.801 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01455/0.01457, allocations: 10.58 MB / 282.9 MB, free: 7.168 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.007467/0.02204, allocations: 3.129 MB / 286.1 MB, free: 4.027 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001601/0.02364, allocations: 43.81 kB / 286.1 MB, free: 3.984 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.002037/0.02568, allocations: 0.6478 MB / 286.7 MB, free: 3.332 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002524/0.0282, allocations: 0.814 MB / 287.6 MB, free: 2.512 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009392/0.02914, allocations: 411.5 kB / 288 MB, free: 2.109 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1278/0.157, allocations: 2.506 MB / 290.5 MB, free: 16.26 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001139/0.1581, allocations: 0.604 MB / 291.1 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.00187/0.16, allocations: 1.4 MB / 292.5 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000889/0.1609, allocations: 0.7138 MB / 293.2 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002771/0.1611, allocations: 230 kB / 293.4 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004607/0.1616, allocations: 266.8 kB / 293.7 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002855/0.1619, allocations: 471.7 kB / 294.1 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007467/0.1626, allocations: 0.7336 MB / 294.9 MB, free: 16.13 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002762/0.1654, allocations: 2.837 MB / 297.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.44e-06/0.1654, allocations: 4.906 kB / 297.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.563e-06/0.1654, allocations: 0.7188 kB / 297.7 MB, free: 15.91 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.486e-05/0.1654, allocations: 0.5938 kB / 297.7 MB, free: 15.91 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.003462/0.1689, allocations: 2.118 MB / 299.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.1689, allocations: 10.19 kB / 299.8 MB, free: 14.74 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001039/0.17, allocations: 412.8 kB / 300.2 MB, free: 14.58 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001657/0.1716, allocations: 1.089 MB / 301.3 MB, free: 13.95 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.763e-05/0.1717, allocations: 113.5 kB / 301.4 MB, free: 13.9 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002133/0.1719, allocations: 165.3 kB / 301.6 MB, free: 13.85 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002286/0.1742, allocations: 1.602 MB / 303.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.878e-05/0.1743, allocations: 11.98 kB / 303.2 MB, free: 13.02 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001267/0.1744, allocations: 70.64 kB / 303.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.126e-05/0.1744, allocations: 42.06 kB / 303.3 MB, free: 12.96 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001878/0.1763, allocations: 1.045 MB / 304.4 MB, free: 12.59 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005923/0.1822, allocations: 5.511 MB / 309.9 MB, free: 8.312 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001333/0.1835, allocations: 0.5706 MB / 310.4 MB, free: 8.016 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000797/0.1843, allocations: 422.4 kB / 310.9 MB, free: 7.82 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.336e-05/0.1844, allocations: 15.77 kB / 310.9 MB, free: 7.812 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.802e-05/0.1844, allocations: 40.59 kB / 310.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.014e-06/0.1844, allocations: 0 / 310.9 MB, free: 7.77 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.004367/0.1888, allocations: 2.18 MB / 313.1 MB, free: 6.5 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.724e-05/0.1888, allocations: 112.7 kB / 313.2 MB, free: 6.375 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001246/0.1901, allocations: 1.175 MB / 314.4 MB, free: 5.48 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.803e-05/0.1901, allocations: 37.7 kB / 314.4 MB, free: 5.438 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003359/0.1904, allocations: 0.8759 MB / 315.3 MB, free: 4.559 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001142/0.1905, allocations: 276.7 kB / 315.6 MB, free: 4.293 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002323/0.1908, allocations: 206.8 kB / 315.8 MB, free: 4.082 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.139e-05/0.1908, allocations: 345.9 kB / 316.1 MB, free: 3.738 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004828/0.1913, allocations: 286.5 kB / 316.4 MB, free: 3.461 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006244/0.1919, allocations: 0.7845 MB / 317.2 MB, free: 2.453 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001188/0.1931, allocations: 1.094 MB / 318.3 MB, free: 1.219 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.941e-06/0.1931, allocations: 4 kB / 318.3 MB, free: 1.215 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002039/0.1952, allocations: 1.306 MB / 319.6 MB, free: 15.99 MB / 282.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.666e-05/0.1952, allocations: 12 kB / 319.6 MB, free: 15.98 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.154e-05/0.1952, allocations: 16.5 kB / 319.6 MB, free: 15.96 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0008611/0.1961, allocations: 185.8 kB / 319.8 MB, free: 15.78 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0009149/0.197, allocations: 261.8 kB / 320 MB, free: 15.54 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004723/0.2017, allocations: 4.253 MB / 324.3 MB, free: 11.03 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001089/0.2028, allocations: 56.09 kB / 324.3 MB, free: 10.97 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.137e-05/0.2029, allocations: 62.92 kB / 324.4 MB, free: 10.91 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.0006654/0.2036, allocations: 349.4 kB / 324.7 MB, free: 10.58 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002576/0.2038, allocations: 155.2 kB / 324.9 MB, free: 10.43 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002001/0.2058, allocations: 0.8215 MB / 325.7 MB, free: 9.594 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.364e-06/0.2058, allocations: 4 kB / 325.7 MB, free: 9.59 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.687e-06/0.2058, allocations: 4 kB / 325.7 MB, free: 9.586 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.235e-06/0.2058, allocations: 3.984 kB / 325.7 MB, free: 9.582 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004232/0.2101, allocations: 1.965 MB / 327.7 MB, free: 7.57 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.038e-05/0.2101, allocations: 7.938 kB / 327.7 MB, free: 7.562 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006277/0.2107, allocations: 127.1 kB / 327.8 MB, free: 7.445 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009026/0.2116, allocations: 198.9 kB / 328 MB, free: 7.242 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.031e-05/0.2117, allocations: 20 kB / 328 MB, free: 7.223 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005168/0.2168, allocations: 4.406 MB / 332.4 MB, free: 2.555 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.376e-06/0.2168, allocations: 11.69 kB / 332.5 MB, free: 2.547 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002757/0.2196, allocations: 1.303 MB / 333.8 MB, free: 1.18 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005184/0.2201, allocations: 195.1 kB / 333.9 MB, free: 0.9883 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001469/0.2203, allocations: 23.12 kB / 334 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006328/0.2209, allocations: 43.97 kB / 334 MB, free: 0.9258 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001489/0.2211, allocations: 68.17 kB / 334.1 MB, free: 0.8633 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.763e-05/0.2211, allocations: 20 kB / 334.1 MB, free: 0.8438 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001275/0.2224, allocations: 0.7763 MB / 334.9 MB, free: 64 kB / 282.7 MB Notification: Performance of sort global known variables: time 6.1e-08/0.2224, allocations: 0 / 334.9 MB, free: 64 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001423/0.2238, allocations: 321.3 kB / 335.2 MB, free: 15.75 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.0002911/0.2241, allocations: 138.6 kB / 335.3 MB, free: 15.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002063/0.2262, allocations: 1.086 MB / 336.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.926e-06/0.2262, allocations: 3.375 kB / 336.4 MB, free: 14.54 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001158/0.2273, allocations: 0.6849 MB / 337.1 MB, free: 13.84 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001612/0.2289, allocations: 352.3 kB / 337.4 MB, free: 13.51 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005874/0.2348, allocations: 2.825 MB / 340.3 MB, free: 10.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007927/0.2356, allocations: 0.6298 MB / 340.9 MB, free: 9.949 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0005814/0.2362, allocations: 158.8 kB / 341.1 MB, free: 9.789 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.2364, allocations: 88.48 kB / 341.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of SimCode: time 1.042e-06/0.2364, allocations: 0 / 341.1 MB, free: 9.703 MB / 298.7 MB Notification: Performance of Templates: time 0.03515/0.2716, allocations: 17.32 MB / 358.5 MB, free: 8.73 MB / 314.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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.1661755529930815]