Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|dcpm1.la.i|dcpm2.la.i|loadInertia1.phi|loadInertia1.w|loadInertia2.phi|loadInertia2.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001014/0.001014, allocations: 85.67 kB / 16.31 MB, free: 6.457 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001125/0.001125, allocations: 179.1 kB / 17.21 MB, free: 6.328 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.431/1.431, allocations: 223.3 MB / 241.2 MB, free: 5.426 MB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003309/0.000331, allocations: 6.719 kB / 300.8 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1072/0.1076, allocations: 50.43 MB / 351.3 MB, free: 11.71 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses): time 0.01048/0.1181, allocations: 10.75 MB / 362 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.005546/0.1237, allocations: 3.099 MB / 365.1 MB, free: 13.82 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0009992/0.1247, allocations: 35.94 kB / 365.1 MB, free: 13.78 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001434/0.1261, allocations: 0.5242 MB / 365.7 MB, free: 13.25 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001506/0.1277, allocations: 0.601 MB / 366.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006332/0.1283, allocations: 243.7 kB / 366.5 MB, free: 12.41 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00225/0.1306, allocations: 2.16 MB / 368.7 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001014/0.1316, allocations: 0.6833 MB / 369.3 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001073/0.1327, allocations: 0.7233 MB / 370.1 MB, free: 8.805 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0008649/0.1335, allocations: 0.8048 MB / 370.9 MB, free: 7.996 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001833/0.1337, allocations: 108 kB / 371 MB, free: 7.891 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003783/0.1341, allocations: 148 kB / 371.1 MB, free: 7.746 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000282/0.1344, allocations: 310.5 kB / 371.4 MB, free: 7.441 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003957/0.1348, allocations: 404.8 kB / 371.8 MB, free: 7.039 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001997/0.1368, allocations: 2.224 MB / 374 MB, free: 4.809 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1368, allocations: 3.938 kB / 374 MB, free: 4.805 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1368, allocations: 0 / 374 MB, free: 4.805 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.202e-05/0.1369, allocations: 0 / 374 MB, free: 4.805 MB / 302.1 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.003078/0.14, allocations: 1.86 MB / 375.9 MB, free: 2.887 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.275e-05/0.14, allocations: 8.031 kB / 375.9 MB, free: 2.879 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0008648/0.1409, allocations: 289.4 kB / 376.2 MB, free: 2.594 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00169/0.1426, allocations: 1.06 MB / 377.3 MB, free: 1.477 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.846e-05/0.1427, allocations: 111.1 kB / 377.4 MB, free: 1.367 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002176/0.1429, allocations: 159.9 kB / 377.5 MB, free: 1.211 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002894/0.1458, allocations: 1.512 MB / 379 MB, free: 15.64 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.391e-05/0.1459, allocations: 7.906 kB / 379 MB, free: 15.63 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001281/0.146, allocations: 64 kB / 379.1 MB, free: 15.57 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.771e-05/0.1461, allocations: 40 kB / 379.1 MB, free: 15.53 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002112/0.1482, allocations: 1.057 MB / 380.2 MB, free: 14.46 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007964/0.1562, allocations: 6.308 MB / 386.5 MB, free: 7.859 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.1576, allocations: 0.631 MB / 387.1 MB, free: 7.219 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008406/0.1585, allocations: 470.9 kB / 387.6 MB, free: 6.758 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.586e-05/0.1585, allocations: 12.5 kB / 387.6 MB, free: 6.746 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.999e-05/0.1586, allocations: 43.06 kB / 387.6 MB, free: 6.695 MB / 318.1 MB Notification: Performance of pre-optimization done (n=66): time 2.154e-06/0.1586, allocations: 8 kB / 387.7 MB, free: 6.688 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.004732/0.1633, allocations: 2.442 MB / 390.1 MB, free: 4.152 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.364e-05/0.1634, allocations: 115.5 kB / 390.2 MB, free: 4.012 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001672/0.1651, allocations: 1.298 MB / 391.5 MB, free: 2.699 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 4.351e-05/0.1651, allocations: 37.7 kB / 391.5 MB, free: 2.656 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005734/0.1657, allocations: 0.8415 MB / 392.4 MB, free: 1.805 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000193/0.1659, allocations: 260.3 kB / 392.6 MB, free: 1.547 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.133e-05/0.1659, allocations: 24 kB / 392.7 MB, free: 1.523 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 0.000131/0.1661, allocations: 349.9 kB / 393 MB, free: 1.176 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005692/0.1667, allocations: 290.5 kB / 393.3 MB, free: 0.8906 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008371/0.1675, allocations: 0.7421 MB / 394 MB, free: 15.94 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007142/0.1682, allocations: 418.9 kB / 394.4 MB, free: 15.53 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.843e-06/0.1682, allocations: 4 kB / 394.4 MB, free: 15.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=144) (initialization): time 0.002212/0.1705, allocations: 1.287 MB / 395.7 MB, free: 14.22 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.972e-05/0.1705, allocations: 12 kB / 395.7 MB, free: 14.21 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.809e-05/0.1705, allocations: 16 kB / 395.8 MB, free: 14.19 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0004864/0.171, allocations: 150.9 kB / 395.9 MB, free: 14.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008187/0.1719, allocations: 267.5 kB / 396.2 MB, free: 13.77 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003549/0.1754, allocations: 4.313 MB / 400.5 MB, free: 9.059 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008972/0.1763, allocations: 64 kB / 400.5 MB, free: 8.996 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.866e-05/0.1764, allocations: 56 kB / 400.6 MB, free: 8.941 MB / 334.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 4} Notification: Performance of prepare postOptimizeDAE: time 0.0006279/0.177, allocations: 361.3 kB / 401 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001702/0.1772, allocations: 142.3 kB / 401.1 MB, free: 8.438 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001736/0.179, allocations: 0.861 MB / 402 MB, free: 7.559 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.387e-06/0.179, allocations: 11.98 kB / 402 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.779e-06/0.179, allocations: 0 / 402 MB, free: 7.547 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.727e-06/0.179, allocations: 7.922 kB / 402 MB, free: 7.539 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003559/0.1826, allocations: 2.373 MB / 404.3 MB, free: 5.047 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.763e-06/0.1826, allocations: 4 kB / 404.3 MB, free: 5.043 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005522/0.1832, allocations: 132.3 kB / 404.5 MB, free: 4.914 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004053/0.1836, allocations: 142.4 kB / 404.6 MB, free: 4.766 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.438e-05/0.1836, allocations: 23.98 kB / 404.6 MB, free: 4.742 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0037/0.1873, allocations: 4.45 MB / 409.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.308e-06/0.1874, allocations: 4 kB / 409.1 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002168/0.1895, allocations: 1.35 MB / 410.4 MB, free: 14.46 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004346/0.19, allocations: 279.3 kB / 410.7 MB, free: 14.17 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.00015/0.1901, allocations: 27.94 kB / 410.7 MB, free: 14.14 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005547/0.1907, allocations: 47.97 kB / 410.8 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001134/0.1908, allocations: 56.42 kB / 410.8 MB, free: 14.04 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.039e-05/0.1909, allocations: 24 kB / 410.9 MB, free: 14.02 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.1921, allocations: 0.8663 MB / 411.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.1921, allocations: 0 / 411.7 MB, free: 13.15 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001185/0.1933, allocations: 332 kB / 412.1 MB, free: 12.82 MB / 350.1 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 (linear and non-linear blocks): 0 * Torn equation systems: 3 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 2 {(1,100.0%) 2,(1,100.0%) 1} * Non-linear torn systems: 1 {1 6} Notification: Performance of Backend phase and start with SimCode phase: time 0.0002999/0.1936, allocations: 143.2 kB / 412.2 MB, free: 12.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001908/0.1955, allocations: 1.128 MB / 413.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.422e-06/0.1955, allocations: 4 kB / 413.3 MB, free: 11.51 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001018/0.1965, allocations: 0.7198 MB / 414.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001577/0.1981, allocations: 342 kB / 414.4 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00592/0.2041, allocations: 3.574 MB / 418 MB, free: 6.766 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0008742/0.205, allocations: 1.221 MB / 419.2 MB, free: 5.512 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0006798/0.2056, allocations: 175.6 kB / 419.4 MB, free: 5.336 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002255/0.2059, allocations: 87.42 kB / 419.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of SimCode: time 9.72e-07/0.2059, allocations: 0 / 419.4 MB, free: 5.25 MB / 350.1 MB Notification: Performance of Templates: time 0.2222/0.4281, allocations: 16.14 MB / 435.6 MB, free: 60.05 MB / 350.1 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_withLosses/DCPM_withLosses.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_withLosses.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches