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.001944/0.001944, allocations: 96.25 kB / 20.96 MB, free: 3.465 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.002325/0.002325, allocations: 156.9 kB / 24.27 MB, free: 164 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.483/1.483, allocations: 177 MB / 204.5 MB, free: 5.613 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 1.412e-06/1.412e-06, allocations: 0 / 272.2 MB, free: 1.785 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.657e-05/2.798e-05, allocations: 5.266 kB / 272.2 MB, free: 1.781 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01501/0.01504, allocations: 10.58 MB / 282.8 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.006811/0.02185, allocations: 3.133 MB / 285.9 MB, free: 4 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001322/0.02317, allocations: 43.81 kB / 286 MB, free: 3.957 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001766/0.02494, allocations: 0.6478 MB / 286.6 MB, free: 3.305 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.002009/0.02695, allocations: 0.8179 MB / 287.4 MB, free: 2.48 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.001049/0.028, allocations: 411.5 kB / 287.8 MB, free: 2.078 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.1114/0.1394, allocations: 2.506 MB / 290.4 MB, free: 16.32 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001479/0.1409, allocations: 0.6042 MB / 291 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002333/0.1432, allocations: 1.404 MB / 292.4 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0009765/0.1442, allocations: 0.709 MB / 293.1 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002763/0.1445, allocations: 229.6 kB / 293.3 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004818/0.1449, allocations: 270.2 kB / 293.6 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002752/0.1452, allocations: 467.4 kB / 294 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0007304/0.1459, allocations: 0.7371 MB / 294.8 MB, free: 16.19 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.002937/0.1489, allocations: 2.838 MB / 297.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/0.1489, allocations: 1.625 kB / 297.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.653e-06/0.1489, allocations: 3.375 kB / 297.6 MB, free: 15.96 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.837e-05/0.1489, allocations: 0.9062 kB / 297.6 MB, free: 15.96 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.003395/0.1523, allocations: 2.116 MB / 299.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.085e-05/0.1524, allocations: 9.406 kB / 299.7 MB, free: 14.77 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001059/0.1534, allocations: 413.9 kB / 300.1 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001723/0.1551, allocations: 1.09 MB / 301.2 MB, free: 13.98 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.097e-05/0.1552, allocations: 118.9 kB / 301.3 MB, free: 13.93 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001994/0.1554, allocations: 159.5 kB / 301.5 MB, free: 13.87 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002678/0.1581, allocations: 1.605 MB / 303.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.382e-05/0.1582, allocations: 8.672 kB / 303.1 MB, free: 13.04 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001354/0.1583, allocations: 67.81 kB / 303.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.774e-05/0.1583, allocations: 37.12 kB / 303.2 MB, free: 12.99 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002018/0.1604, allocations: 1.046 MB / 304.2 MB, free: 12.61 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006337/0.1667, allocations: 5.515 MB / 309.8 MB, free: 8.371 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001338/0.168, allocations: 0.5748 MB / 310.3 MB, free: 8.074 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007804/0.1688, allocations: 420.2 kB / 310.7 MB, free: 7.879 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.121e-05/0.1689, allocations: 13.59 kB / 310.8 MB, free: 7.875 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.1689, allocations: 42.09 kB / 310.8 MB, free: 7.828 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 2.304e-06/0.1689, allocations: 0 / 310.8 MB, free: 7.828 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.0045/0.1734, allocations: 2.175 MB / 313 MB, free: 6.562 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.021e-05/0.1734, allocations: 117.1 kB / 313.1 MB, free: 6.438 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00126/0.1747, allocations: 1.174 MB / 314.3 MB, free: 5.523 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.791e-05/0.1747, allocations: 41.7 kB / 314.3 MB, free: 5.477 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003547/0.1751, allocations: 0.8811 MB / 315.2 MB, free: 4.594 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001183/0.1752, allocations: 270.6 kB / 315.5 MB, free: 4.332 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002149/0.1754, allocations: 202.8 kB / 315.7 MB, free: 4.125 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.842e-05/0.1755, allocations: 349.9 kB / 316 MB, free: 3.777 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004861/0.176, allocations: 278.5 kB / 316.3 MB, free: 3.508 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006704/0.1766, allocations: 0.7884 MB / 317.1 MB, free: 2.496 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001231/0.1779, allocations: 1.093 MB / 318.1 MB, free: 1.262 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.531e-06/0.1779, allocations: 4 kB / 318.1 MB, free: 1.258 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001942/0.1798, allocations: 1.31 MB / 319.5 MB, free: 32 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.39e-05/0.1798, allocations: 16.09 kB / 319.5 MB, free: 16 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.592e-05/0.1798, allocations: 12 kB / 319.5 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0009068/0.1807, allocations: 186.4 kB / 319.7 MB, free: 15.81 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008962/0.1816, allocations: 261.8 kB / 319.9 MB, free: 15.58 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004812/0.1865, allocations: 4.254 MB / 324.2 MB, free: 11.07 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001145/0.1876, allocations: 60.08 kB / 324.2 MB, free: 11.01 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.894e-05/0.1877, allocations: 52 kB / 324.3 MB, free: 10.96 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.0008149/0.1885, allocations: 354.9 kB / 324.6 MB, free: 10.62 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002582/0.1888, allocations: 154.4 kB / 324.8 MB, free: 10.47 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00199/0.1908, allocations: 0.8193 MB / 325.6 MB, free: 9.633 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.055e-05/0.1908, allocations: 11.09 kB / 325.6 MB, free: 9.625 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.507e-06/0.1908, allocations: 0 / 325.6 MB, free: 9.625 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.506e-06/0.1908, allocations: 7.984 kB / 325.6 MB, free: 9.617 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004121/0.1949, allocations: 1.952 MB / 327.6 MB, free: 7.617 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.23e-05/0.1949, allocations: 7.938 kB / 327.6 MB, free: 7.609 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006237/0.1955, allocations: 131.1 kB / 327.7 MB, free: 7.488 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0009056/0.1964, allocations: 201.1 kB / 327.9 MB, free: 7.285 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.288e-05/0.1965, allocations: 31.36 kB / 327.9 MB, free: 7.258 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005162/0.2017, allocations: 4.404 MB / 332.3 MB, free: 2.594 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.474e-06/0.2017, allocations: 7.938 kB / 332.3 MB, free: 2.586 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002825/0.2045, allocations: 1.3 MB / 333.6 MB, free: 1.223 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006195/0.2051, allocations: 195.1 kB / 333.8 MB, free: 1.031 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001671/0.2053, allocations: 19.94 kB / 333.9 MB, free: 1.012 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006599/0.2059, allocations: 43.95 kB / 333.9 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001568/0.2061, allocations: 63.91 kB / 334 MB, free: 0.9102 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.203e-05/0.2061, allocations: 27.98 kB / 334 MB, free: 0.8828 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.001331/0.2075, allocations: 0.7685 MB / 334.8 MB, free: 112 kB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.2075, allocations: 0 / 334.8 MB, free: 112 kB / 282.7 MB Notification: Performance of remove unused functions: time 0.001438/0.2089, allocations: 324 kB / 335.1 MB, free: 15.79 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.0003069/0.2092, allocations: 145 kB / 335.2 MB, free: 15.65 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.002174/0.2114, allocations: 1.088 MB / 336.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 4.188e-06/0.2114, allocations: 0 / 336.3 MB, free: 14.58 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001174/0.2126, allocations: 0.6961 MB / 337 MB, free: 13.87 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001696/0.2143, allocations: 357.5 kB / 337.4 MB, free: 13.54 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006103/0.2204, allocations: 2.809 MB / 340.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008714/0.2212, allocations: 0.6298 MB / 340.8 MB, free: 9.996 MB / 298.7 MB Notification: Performance of simCode: alias equations: time 0.0007579/0.222, allocations: 170.8 kB / 341 MB, free: 9.824 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002522/0.2223, allocations: 92.48 kB / 341 MB, free: 9.734 MB / 298.7 MB Notification: Performance of SimCode: time 1.002e-06/0.2223, allocations: 0 / 341 MB, free: 9.734 MB / 298.7 MB Notification: Performance of Templates: time 0.03515/0.2574, allocations: 17.29 MB / 358.3 MB, free: 8.789 MB / 314.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=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 480] 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.235868867021054]