Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Using package Modelica with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") translateModel(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0008602/0.0008603, allocations: 178.4 kB / 16.71 MB, free: 5.09 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.258/1.258, allocations: 225.7 MB / 243.2 MB, free: 8.488 MB / 202.7 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007902/0.0007901, allocations: 91.17 kB / 294.4 MB, free: 9.512 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002469/0.000247, allocations: 4 kB / 354.2 MB, free: 13.64 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2019/0.2022, allocations: 50.42 MB / 404.6 MB, free: 31.32 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.005423/0.2077, allocations: 7.2 MB / 411.8 MB, free: 24.09 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.003542/0.2113, allocations: 2.799 MB / 414.6 MB, free: 21.25 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005125/0.2118, allocations: 31.88 kB / 414.6 MB, free: 21.21 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0009707/0.2128, allocations: 477.4 kB / 415.1 MB, free: 20.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006058/0.2134, allocations: 369.3 kB / 415.4 MB, free: 20.38 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004941/0.2139, allocations: 315.7 kB / 415.8 MB, free: 20.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0008157/0.2147, allocations: 1.421 MB / 417.2 MB, free: 18.64 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005446/0.2153, allocations: 0.5212 MB / 417.7 MB, free: 18.1 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000372/0.2157, allocations: 461.6 kB / 418.1 MB, free: 17.64 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003969/0.2161, allocations: 0.509 MB / 418.7 MB, free: 17.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 9.035e-05/0.2162, allocations: 64 kB / 418.7 MB, free: 17.07 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000221/0.2164, allocations: 99.97 kB / 418.8 MB, free: 16.97 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001095/0.2165, allocations: 202.9 kB / 419 MB, free: 16.77 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0003533/0.2169, allocations: 0.596 MB / 419.6 MB, free: 16.17 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0009006/0.2178, allocations: 1.595 MB / 421.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.508e-06/0.2178, allocations: 0 / 421.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.2178, allocations: 0 / 421.2 MB, free: 14.57 MB / 298.7 MB Notification: Performance of Transformations before backend: time 1.261e-05/0.2178, allocations: 4 kB / 421.2 MB, free: 14.56 MB / 298.7 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 247 * Number of variables: 247 Notification: Performance of Generate backend data structure: time 0.001589/0.2194, allocations: 1.302 MB / 422.5 MB, free: 13.21 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.563e-05/0.2194, allocations: 8.031 kB / 422.5 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005023/0.22, allocations: 191.2 kB / 422.7 MB, free: 13.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008388/0.2208, allocations: 0.7783 MB / 423.5 MB, free: 12.19 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.714e-05/0.2209, allocations: 74.12 kB / 423.6 MB, free: 12.12 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 9.849e-05/0.221, allocations: 99.91 kB / 423.7 MB, free: 12.02 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001217/0.2222, allocations: 0.9575 MB / 424.6 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.591e-05/0.2222, allocations: 4 kB / 424.6 MB, free: 11.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.023e-05/0.2223, allocations: 44 kB / 424.7 MB, free: 10.98 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.534e-05/0.2223, allocations: 24 kB / 424.7 MB, free: 10.95 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0009325/0.2232, allocations: 0.6402 MB / 425.3 MB, free: 10.32 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003572/0.2268, allocations: 4.142 MB / 429.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000796/0.2276, allocations: 473.5 kB / 429.9 MB, free: 5.477 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002313/0.2279, allocations: 164.8 kB / 430.1 MB, free: 5.312 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.575e-05/0.2279, allocations: 4 kB / 430.1 MB, free: 5.309 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.411e-05/0.228, allocations: 46.5 kB / 430.1 MB, free: 5.254 MB / 298.7 MB Notification: Performance of pre-optimization done (n=37): time 1.774e-06/0.228, allocations: 0 / 430.1 MB, free: 5.254 MB / 298.7 MB Notification: Performance of matching and sorting (n=40): time 0.001769/0.2297, allocations: 1.344 MB / 431.5 MB, free: 3.836 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.05e-05/0.2298, allocations: 106.8 kB / 431.6 MB, free: 3.707 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008223/0.2306, allocations: 0.8858 MB / 432.5 MB, free: 2.797 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 2.056e-05/0.2306, allocations: 33.7 kB / 432.5 MB, free: 2.758 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002476/0.2309, allocations: 0.5798 MB / 433.1 MB, free: 2.168 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 6.567e-05/0.231, allocations: 153.9 kB / 433.2 MB, free: 2.016 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.134e-05/0.231, allocations: 16 kB / 433.3 MB, free: 2 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.87e-05/0.231, allocations: 334 kB / 433.6 MB, free: 1.668 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002648/0.2313, allocations: 173.9 kB / 433.7 MB, free: 1.5 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000351/0.2317, allocations: 497.7 kB / 434.2 MB, free: 0.8672 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00063/0.2323, allocations: 0.6944 MB / 434.9 MB, free: 28 kB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.617e-06/0.2323, allocations: 4 kB / 434.9 MB, free: 24 kB / 298.7 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001135/0.2335, allocations: 0.7474 MB / 435.7 MB, free: 15.27 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002223/0.2337, allocations: 400.6 kB / 436.1 MB, free: 14.73 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.833e-05/0.2337, allocations: 12 kB / 436.1 MB, free: 14.71 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001346/0.2339, allocations: 36.84 kB / 436.1 MB, free: 14.68 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000538/0.2344, allocations: 167.7 kB / 436.3 MB, free: 14.51 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008447/0.2353, allocations: 1.292 MB / 437.6 MB, free: 13.08 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000472/0.2358, allocations: 47.98 kB / 437.6 MB, free: 13.04 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.676e-05/0.2358, allocations: 43.94 kB / 437.7 MB, free: 12.99 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.44e-06/0.2358, allocations: 7.938 kB / 437.7 MB, free: 12.98 MB / 314.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0008772/0.2367, allocations: 0.6017 MB / 438.3 MB, free: 12.38 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.135e-05/0.2367, allocations: 16.08 kB / 438.3 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.774e-05/0.2368, allocations: 40.78 kB / 438.3 MB, free: 12.32 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004965/0.2373, allocations: 164.2 kB / 438.5 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007448/0.2381, allocations: 1.288 MB / 439.8 MB, free: 10.74 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000416/0.2385, allocations: 44 kB / 439.8 MB, free: 10.7 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.005e-05/0.2386, allocations: 36 kB / 439.9 MB, free: 10.66 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 47 * Number of states: 0 () * Number of discrete variables: 1 (PID.I.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (90): * Single equations (assignments): 89 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003639/0.2389, allocations: 336.8 kB / 440.2 MB, free: 10.32 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001094/0.239, allocations: 90.88 kB / 440.3 MB, free: 10.23 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0007526/0.2398, allocations: 451.4 kB / 440.7 MB, free: 9.785 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.011e-06/0.2398, allocations: 4 kB / 440.7 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.134e-06/0.2398, allocations: 0 / 440.7 MB, free: 9.781 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.33e-06/0.2398, allocations: 3.984 kB / 440.7 MB, free: 9.777 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001863/0.2417, allocations: 1.402 MB / 442.1 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.2417, allocations: 0 / 442.1 MB, free: 8.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003444/0.2421, allocations: 83.89 kB / 442.2 MB, free: 8.211 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.806e-05/0.2421, allocations: 20.86 kB / 442.2 MB, free: 8.188 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.436e-05/0.2422, allocations: 8.219 kB / 442.2 MB, free: 8.18 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0007763/0.243, allocations: 1.277 MB / 443.5 MB, free: 6.77 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.406e-06/0.243, allocations: 4.188 kB / 443.5 MB, free: 6.766 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009676/0.244, allocations: 0.7283 MB / 444.2 MB, free: 5.996 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002681/0.2442, allocations: 204 kB / 444.4 MB, free: 5.777 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001249/0.2444, allocations: 16 kB / 444.5 MB, free: 5.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003734/0.2448, allocations: 19.98 kB / 444.5 MB, free: 5.742 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.626e-05/0.2448, allocations: 36.02 kB / 444.5 MB, free: 5.707 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.341e-05/0.2449, allocations: 16 kB / 444.5 MB, free: 5.691 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0007111/0.2456, allocations: 0.6053 MB / 445.1 MB, free: 5.074 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.41e-07/0.2456, allocations: 0 / 445.1 MB, free: 5.074 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0009285/0.2465, allocations: 348 kB / 445.5 MB, free: 4.734 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 5 (dcpm.inertiaRotor.w,dcpm.la.i,loadTorque.phi,firstOrder.y,PID.I.y) * 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 (39): * Single equations (assignments): 38 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 1 system {(1,1,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0001693/0.2467, allocations: 123.2 kB / 445.6 MB, free: 4.602 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001413/0.2481, allocations: 0.9776 MB / 446.6 MB, free: 3.602 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.268e-06/0.2481, allocations: 0 / 446.6 MB, free: 3.602 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003935/0.2485, allocations: 304.4 kB / 446.9 MB, free: 3.293 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001199/0.2497, allocations: 224.5 kB / 447.1 MB, free: 3.074 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002768/0.2525, allocations: 2.341 MB / 449.4 MB, free: 0.6836 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005564/0.2531, allocations: 1.017 MB / 450.4 MB, free: 15.64 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0004946/0.2536, allocations: 135.3 kB / 450.6 MB, free: 15.5 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001374/0.2537, allocations: 59.44 kB / 450.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2538, allocations: 0 / 450.6 MB, free: 15.44 MB / 330.7 MB Notification: Performance of Templates: time 0.01733/0.2711, allocations: 10.08 MB / 460.7 MB, free: 5.473 MB / 330.7 MB make -j1 -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/DCMachines/DCPM_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_4.0.0_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches