Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.0008599/0.0008599, allocations: 83.69 kB / 21.43 MB, free: 3.125 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.00397/0.00397, allocations: 165.4 kB / 24.7 MB, free: 9.402 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 0.8538/0.8538, allocations: 158.6 MB / 186.5 MB, free: 3.031 MB / 170.7 MB " [Timeout remaining time 179] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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: "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.402e-06/1.402e-06, allocations: 0 / 298.4 MB, free: 3.512 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.092e-05/1.232e-05, allocations: 2.281 kB / 298.5 MB, free: 3.508 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.1349/0.1349, allocations: 10.49 MB / 308.9 MB, free: 10.04 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.005516/0.1404, allocations: 3.147 MB / 312.1 MB, free: 7.852 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001033/0.1415, allocations: 43.34 kB / 312.1 MB, free: 7.84 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001351/0.1428, allocations: 0.6481 MB / 312.8 MB, free: 7.512 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001498/0.1443, allocations: 0.8138 MB / 313.6 MB, free: 6.91 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007982/0.1451, allocations: 405.2 kB / 314 MB, free: 6.652 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.002224/0.1473, allocations: 2.518 MB / 316.5 MB, free: 5.242 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009051/0.1483, allocations: 0.6035 MB / 317.1 MB, free: 4.871 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001475/0.1497, allocations: 1.403 MB / 318.5 MB, free: 4.203 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0007185/0.1504, allocations: 0.7088 MB / 319.2 MB, free: 3.941 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0002332/0.1507, allocations: 234.2 kB / 319.4 MB, free: 3.938 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003691/0.151, allocations: 265 kB / 319.7 MB, free: 3.93 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0002223/0.1513, allocations: 466.6 kB / 320.2 MB, free: 3.582 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0005866/0.1519, allocations: 0.7436 MB / 320.9 MB, free: 3.227 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.00209/0.1539, allocations: 2.829 MB / 323.7 MB, free: 1.586 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.073e-06/0.154, allocations: 1 kB / 323.7 MB, free: 1.586 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.154, allocations: 3.938 kB / 323.7 MB, free: 1.582 MB / 282.7 MB Notification: Performance of Transformations before backend: time 2.472e-05/0.154, allocations: 0 / 323.7 MB, free: 1.582 MB / 282.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.002313/0.1563, allocations: 2.119 MB / 325.9 MB, free: 20 kB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.299e-05/0.1563, allocations: 13.8 kB / 325.9 MB, free: 16 kB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0002367/0.1566, allocations: 221.4 kB / 326.1 MB, free: 15.84 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005637/0.1571, allocations: 297.1 kB / 326.4 MB, free: 15.7 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001379/0.1585, allocations: 1.056 MB / 327.4 MB, free: 14.87 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.726e-05/0.1586, allocations: 116.3 kB / 327.5 MB, free: 14.81 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001719/0.1588, allocations: 158.2 kB / 327.7 MB, free: 14.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00183/0.1606, allocations: 1.612 MB / 329.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.007e-05/0.1606, allocations: 11.36 kB / 329.3 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.455e-05/0.1607, allocations: 62 kB / 329.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.918e-05/0.1608, allocations: 38.22 kB / 329.4 MB, free: 13.63 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001391/0.1621, allocations: 1.041 MB / 330.5 MB, free: 13.11 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005302/0.1675, allocations: 5.638 MB / 336.1 MB, free: 8.484 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009587/0.1684, allocations: 0.5656 MB / 336.7 MB, free: 8.074 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005669/0.169, allocations: 426.5 kB / 337.1 MB, free: 7.656 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.842e-05/0.169, allocations: 8.656 kB / 337.1 MB, free: 7.648 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.774e-05/0.169, allocations: 43.16 kB / 337.1 MB, free: 7.598 MB / 298.7 MB Notification: Performance of pre-optimization done (n=66): time 2.003e-06/0.169, allocations: 0 / 337.1 MB, free: 7.598 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.003037/0.1721, allocations: 2.175 MB / 339.3 MB, free: 5.387 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.888e-05/0.1721, allocations: 111.5 kB / 339.4 MB, free: 5.254 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001255/0.1734, allocations: 1.329 MB / 340.7 MB, free: 3.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.532e-05/0.1734, allocations: 41.7 kB / 340.8 MB, free: 3.863 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004277/0.1739, allocations: 0.8633 MB / 341.7 MB, free: 2.988 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001327/0.174, allocations: 273.6 kB / 341.9 MB, free: 2.719 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.00019/0.1742, allocations: 206.8 kB / 342.1 MB, free: 2.512 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.1743, allocations: 353.9 kB / 342.5 MB, free: 2.16 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003687/0.1747, allocations: 286.4 kB / 342.7 MB, free: 1.879 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006295/0.1753, allocations: 0.7849 MB / 343.5 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00109/0.1764, allocations: 1.092 MB / 344.6 MB, free: 15.57 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.851e-06/0.1764, allocations: 4 kB / 344.6 MB, free: 15.56 MB / 314.7 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.001409/0.1778, allocations: 1.261 MB / 345.9 MB, free: 14.29 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.285e-05/0.1778, allocations: 16 kB / 345.9 MB, free: 14.27 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.59e-05/0.1778, allocations: 17.72 kB / 345.9 MB, free: 14.25 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003287/0.1782, allocations: 134.5 kB / 346.1 MB, free: 14.11 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.1788, allocations: 259.6 kB / 346.3 MB, free: 13.86 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.002911/0.1817, allocations: 4.297 MB / 350.6 MB, free: 9.223 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004424/0.1821, allocations: 64.08 kB / 350.7 MB, free: 9.16 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.795e-05/0.1822, allocations: 52 kB / 350.7 MB, free: 9.109 MB / 314.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.0003933/0.1826, allocations: 353.3 kB / 351.1 MB, free: 8.754 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001358/0.1827, allocations: 151 kB / 351.2 MB, free: 8.605 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001117/0.1838, allocations: 0.8256 MB / 352 MB, free: 7.758 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.65e-06/0.1838, allocations: 8 kB / 352 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.727e-06/0.1838, allocations: 0 / 352 MB, free: 7.75 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.424e-06/0.1838, allocations: 11.92 kB / 352.1 MB, free: 7.738 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002437/0.1863, allocations: 2.129 MB / 354.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.829e-06/0.1863, allocations: 480 / 354.2 MB, free: 5.504 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/0.1866, allocations: 135.8 kB / 354.3 MB, free: 5.371 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0002472/0.1868, allocations: 126.5 kB / 354.4 MB, free: 5.238 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.852e-05/0.1868, allocations: 16 kB / 354.5 MB, free: 5.223 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002812/0.1897, allocations: 4.468 MB / 358.9 MB, free: 420 kB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.25e-06/0.1897, allocations: 11.88 kB / 358.9 MB, free: 408 kB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001464/0.1911, allocations: 1.289 MB / 360.2 MB, free: 15.04 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002816/0.1914, allocations: 215 kB / 360.4 MB, free: 14.82 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.246e-05/0.1915, allocations: 23.94 kB / 360.5 MB, free: 14.8 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003248/0.1918, allocations: 31.97 kB / 360.5 MB, free: 14.77 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001125/0.1919, allocations: 68.33 kB / 360.6 MB, free: 14.7 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.992e-05/0.192, allocations: 23.94 kB / 360.6 MB, free: 14.68 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.00084/0.1928, allocations: 0.882 MB / 361.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of sort global known variables: time 8e-08/0.1928, allocations: 0 / 361.5 MB, free: 13.8 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0007978/0.1936, allocations: 331.9 kB / 361.8 MB, free: 13.47 MB / 330.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.001946/0.1956, allocations: 1.875 MB / 363.7 MB, free: 11.52 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.00199/0.1975, allocations: 1.085 MB / 364.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.797e-06/0.1975, allocations: 0 / 364.7 MB, free: 10.39 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006105/0.1982, allocations: 0.6913 MB / 365.4 MB, free: 9.664 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001052/0.1992, allocations: 379.7 kB / 365.8 MB, free: 9.297 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01419/0.2134, allocations: 11.63 MB / 377.4 MB, free: 12.96 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009166/0.2143, allocations: 0.6341 MB / 378.1 MB, free: 12.29 MB / 346.7 MB Notification: Performance of simCode: alias equations: time 0.0005919/0.2149, allocations: 171.6 kB / 378.2 MB, free: 12.12 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005732/0.2155, allocations: 0.6097 MB / 378.9 MB, free: 11.51 MB / 346.7 MB Notification: Performance of SimCode: time 1.854e-06/0.2155, allocations: 0 / 378.9 MB, free: 11.51 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05268/0.2682, allocations: 33.72 MB / 412.6 MB, free: 9.676 MB / 378.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.749/9.017, allocations: 0 / 412.6 MB, free: 9.676 MB / 378.7 MB " [Timeout remaining time 651] (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses_fmu --startTime=0 --stopTime=2 --stepSize=0.0001 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Machines_Examples_DCMachines_DCPM_withLosses.fmu > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 659] Reference file matches [Calling sys.exit(0), Time elapsed: 12.048401609994471]