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.0007449/0.0007449, allocations: 76.17 kB / 9.931 MB, free: 0.7578 MB / 10.45 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.001118/0.001863, allocations: 449.7 kB / 10.37 MB, free: 328 kB / 10.45 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.0007334/0.0007334, allocations: 169.1 kB / 11.26 MB, free: 2.91 MB / 13.93 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.000908/0.001641, allocations: 455.6 kB / 11.71 MB, free: 2.461 MB / 13.93 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 0.9845/0.9845, allocations: 177.2 MB / 189.6 MB, free: 5.301 MB / 186.7 MB Notification: Performance of NFInstanceAPI.mkTop(): time 0.08221/1.067, allocations: 53.65 MB / 243.3 MB, free: 15.57 MB / 250.7 MB " [Timeout remaining time 179] 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.532e-06/1.532e-06, allocations: 0 / 244.5 MB, free: 14.3 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.645e-05/2.798e-05, allocations: 13.12 kB / 244.5 MB, free: 14.29 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.009574/0.009602, allocations: 11.87 MB / 256.4 MB, free: 2.359 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.005791/0.01539, allocations: 3.396 MB / 259.8 MB, free: 14.95 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001242/0.01663, allocations: 43.81 kB / 259.8 MB, free: 14.91 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001294/0.01793, allocations: 0.6632 MB / 260.5 MB, free: 14.24 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001803/0.01973, allocations: 0.8257 MB / 261.3 MB, free: 13.41 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000781/0.02051, allocations: 399.5 kB / 261.7 MB, free: 13.02 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.002632/0.02315, allocations: 2.525 MB / 264.3 MB, free: 10.48 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009102/0.02406, allocations: 0.6343 MB / 264.9 MB, free: 9.785 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.002532/0.02659, allocations: 1.629 MB / 266.5 MB, free: 8.137 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001044/0.02763, allocations: 0.7713 MB / 267.3 MB, free: 7.363 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002697/0.0279, allocations: 224 kB / 267.5 MB, free: 7.145 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005326/0.02843, allocations: 264 kB / 267.8 MB, free: 6.887 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002051/0.02864, allocations: 350.8 kB / 268.1 MB, free: 6.543 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0006471/0.02929, allocations: 0.6238 MB / 268.7 MB, free: 5.918 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001489/0.03078, allocations: 1.405 MB / 270.1 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.695e-05/0.03079, allocations: 0 / 270.1 MB, free: 4.508 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.03079, allocations: 0 / 270.1 MB, free: 4.508 MB / 266.7 MB Notification: Performance of Transformations before backend: time 3.473e-05/0.03083, allocations: 4 kB / 270.1 MB, free: 4.504 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.002515/0.03334, allocations: 2.471 MB / 272.6 MB, free: 1.996 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.03338, allocations: 11.98 kB / 272.6 MB, free: 1.984 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006232/0.03401, allocations: 425.7 kB / 273 MB, free: 1.551 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001383/0.03539, allocations: 0.793 MB / 273.8 MB, free: 0.7109 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.852e-05/0.03548, allocations: 111.5 kB / 273.9 MB, free: 0.6016 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001833/0.03566, allocations: 164.3 kB / 274.1 MB, free: 452 kB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.1157/0.1514, allocations: 1.167 MB / 275.3 MB, free: 21.78 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.946e-05/0.1515, allocations: 12.61 kB / 275.3 MB, free: 21.78 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.158e-05/0.1515, allocations: 63.22 kB / 275.3 MB, free: 21.78 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.259e-05/0.1516, allocations: 38.34 kB / 275.4 MB, free: 21.78 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007567/0.1523, allocations: 394.1 kB / 275.8 MB, free: 21.75 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0116/0.1639, allocations: 4.727 MB / 280.5 MB, free: 19.43 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000698/0.1646, allocations: 358.5 kB / 280.8 MB, free: 19.41 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.003407/0.168, allocations: 247.3 kB / 281.1 MB, free: 19.39 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.508e-05/0.1681, allocations: 13.39 kB / 281.1 MB, free: 19.39 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.1681, allocations: 51.48 kB / 281.1 MB, free: 19.35 MB / 266.7 MB Notification: Performance of pre-optimization done (n=66): time 3.096e-06/0.1681, allocations: 0.7812 kB / 281.1 MB, free: 19.35 MB / 266.7 MB Notification: Performance of matching and sorting (n=72): time 0.002401/0.1705, allocations: 1.229 MB / 282.4 MB, free: 19.03 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 2.592e-05/0.1705, allocations: 63.72 kB / 282.4 MB, free: 18.96 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00407/0.1746, allocations: 1.004 MB / 283.4 MB, free: 18.77 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.1746, allocations: 44.8 kB / 283.5 MB, free: 18.74 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003452/0.175, allocations: 0.7288 MB / 284.2 MB, free: 18.3 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001416/0.1751, allocations: 275.4 kB / 284.5 MB, free: 18.12 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002039/0.1753, allocations: 209.6 kB / 284.7 MB, free: 18.1 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 6.694e-05/0.1754, allocations: 356 kB / 285 MB, free: 17.79 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001638/0.1756, allocations: 96.64 kB / 285.1 MB, free: 17.79 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003711/0.1759, allocations: 0.6131 MB / 285.7 MB, free: 17.16 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007133/0.1766, allocations: 0.7839 MB / 286.5 MB, free: 16.61 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.658e-06/0.1767, allocations: 3.75 kB / 286.5 MB, free: 16.61 MB / 266.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.004166/0.1808, allocations: 0.7604 MB / 287.3 MB, free: 16.52 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.075e-05/0.1809, allocations: 13.84 kB / 287.3 MB, free: 16.52 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.518e-05/0.1809, allocations: 15 kB / 287.3 MB, free: 16.52 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000468/0.1813, allocations: 161.3 kB / 287.5 MB, free: 16.49 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006859/0.182, allocations: 292.8 kB / 287.8 MB, free: 16.47 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0021/0.1841, allocations: 3.78 MB / 291.5 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007033/0.1848, allocations: 52.3 kB / 291.6 MB, free: 12.9 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.894e-05/0.1849, allocations: 44.34 kB / 291.6 MB, free: 12.9 MB / 266.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.0002772/0.1852, allocations: 190.3 kB / 291.8 MB, free: 12.76 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001401/0.1853, allocations: 102.6 kB / 291.9 MB, free: 12.75 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0006774/0.186, allocations: 477.6 kB / 292.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.17e-06/0.186, allocations: 6.219 kB / 292.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.158e-06/0.186, allocations: 7.125 kB / 292.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.332e-06/0.186, allocations: 3.891 kB / 292.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001514/0.1875, allocations: 1.204 MB / 293.6 MB, free: 12.21 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.33e-06/0.1875, allocations: 8 kB / 293.6 MB, free: 12.2 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003219/0.1878, allocations: 156.9 kB / 293.8 MB, free: 12.18 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002083/0.1881, allocations: 122.4 kB / 293.9 MB, free: 12.11 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003201/0.1884, allocations: 177.3 kB / 294.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.338e-05/0.1884, allocations: 19.38 kB / 294.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001222/0.1896, allocations: 3.83 MB / 297.9 MB, free: 8.383 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.677e-06/0.1896, allocations: 8.125 kB / 297.9 MB, free: 8.379 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006509/0.1903, allocations: 0.7385 MB / 298.7 MB, free: 8.023 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001016/0.1904, allocations: 22.94 kB / 298.7 MB, free: 8.012 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002473/0.1906, allocations: 29.3 kB / 298.7 MB, free: 8 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.032e-05/0.1907, allocations: 70.66 kB / 298.8 MB, free: 7.98 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.127e-05/0.1907, allocations: 18.81 kB / 298.8 MB, free: 7.977 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0003329/0.1911, allocations: 471.3 kB / 299.3 MB, free: 7.914 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1911, allocations: 2.734 kB / 299.3 MB, free: 7.914 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.001063/0.1921, allocations: 329.9 kB / 299.6 MB, free: 7.879 MB / 266.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.0002395/0.1924, allocations: 121.8 kB / 299.7 MB, free: 7.785 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.0007655/0.1931, allocations: 0.8191 MB / 300.5 MB, free: 7.309 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 3.912e-05/0.1932, allocations: 27.06 kB / 300.5 MB, free: 7.301 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002923/0.1935, allocations: 0.5557 MB / 301.1 MB, free: 6.727 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008054/0.1943, allocations: 457.4 kB / 301.5 MB, free: 6.301 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01434/0.2086, allocations: 2.738 MB / 304.3 MB, free: 3.504 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001919/0.2088, allocations: 257 kB / 304.5 MB, free: 3.23 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0005173/0.2093, allocations: 158.8 kB / 304.7 MB, free: 3.07 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004371/0.2098, allocations: 352.7 kB / 305 MB, free: 2.727 MB / 266.7 MB Notification: Performance of SimCode: time 1.773e-06/0.2098, allocations: 3.938 kB / 305 MB, free: 2.723 MB / 266.7 MB Notification: Performance of Templates: time 0.02573/0.2355, allocations: 19.69 MB / 324.7 MB, free: 15.41 MB / 298.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=240 -emit_protected -ignoreHideResult -lv LOG_STATS > Modelica_4.1.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 240] 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","",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.081620271317661]