Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.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 3.2.3+maint.om/package.mo", uses=false) 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.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_CurrentControlled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|PID.I.y|dcpm.la.i|firstOrder.y|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_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_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008642/0.0008642, allocations: 95.61 kB / 17.3 MB, free: 6.391 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.001045/0.001045, allocations: 175.6 kB / 18.21 MB, free: 5.551 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.941/1.941, allocations: 205.4 MB / 224.4 MB, free: 13.07 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0004915/0.0004915, allocations: 12 kB / 281.4 MB, free: 3.406 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1582/0.1587, allocations: 47.58 MB / 329 MB, free: 3.754 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01283/0.1716, allocations: 7.613 MB / 336.6 MB, free: 12.09 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.008143/0.1798, allocations: 2.681 MB / 339.3 MB, free: 9.398 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001877/0.1817, allocations: 27.94 kB / 339.3 MB, free: 9.371 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002553/0.1843, allocations: 469.3 kB / 339.8 MB, free: 8.91 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.002265/0.1866, allocations: 381.3 kB / 340.1 MB, free: 8.535 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001303/0.1879, allocations: 319.7 kB / 340.4 MB, free: 8.223 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.002813/0.1907, allocations: 1.421 MB / 341.9 MB, free: 6.793 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001284/0.192, allocations: 0.5213 MB / 342.4 MB, free: 6.246 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001097/0.1931, allocations: 465.6 kB / 342.8 MB, free: 5.789 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.001072/0.1942, allocations: 0.5089 MB / 343.3 MB, free: 5.277 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002972/0.1945, allocations: 64 kB / 343.4 MB, free: 5.215 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0005712/0.1951, allocations: 95.97 kB / 343.5 MB, free: 5.121 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002416/0.1954, allocations: 202.9 kB / 343.7 MB, free: 4.922 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001065/0.1965, allocations: 0.5999 MB / 344.3 MB, free: 4.312 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002041/0.1985, allocations: 1.599 MB / 345.9 MB, free: 2.707 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.727e-06/0.1985, allocations: 7.938 kB / 345.9 MB, free: 2.699 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.525e-06/0.1985, allocations: 3.938 kB / 345.9 MB, free: 2.695 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.433e-05/0.1986, allocations: 0 / 345.9 MB, free: 2.695 MB / 286.1 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.003521/0.2022, allocations: 1.301 MB / 347.2 MB, free: 1.34 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.901e-05/0.2022, allocations: 12.03 kB / 347.2 MB, free: 1.328 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0009073/0.2031, allocations: 183.3 kB / 347.4 MB, free: 1.148 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001799/0.2049, allocations: 0.786 MB / 348.2 MB, free: 328 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.024e-05/0.205, allocations: 78.12 kB / 348.3 MB, free: 252 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001441/0.2052, allocations: 96 kB / 348.4 MB, free: 156 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00179/0.207, allocations: 0.9575 MB / 349.3 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.974e-05/0.207, allocations: 7.906 kB / 349.3 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.51e-05/0.2071, allocations: 40 kB / 349.4 MB, free: 15.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.309e-05/0.2072, allocations: 24 kB / 349.4 MB, free: 15.08 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001216/0.2084, allocations: 0.6519 MB / 350 MB, free: 14.43 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006312/0.2147, allocations: 4.142 MB / 354.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001039/0.2158, allocations: 475.2 kB / 354.6 MB, free: 9.59 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003029/0.2161, allocations: 169.4 kB / 354.8 MB, free: 9.422 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.176e-05/0.2161, allocations: 7.75 kB / 354.8 MB, free: 9.414 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.435e-05/0.2162, allocations: 38.56 kB / 354.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.625e-06/0.2162, allocations: 0 / 354.9 MB, free: 9.367 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002704/0.2189, allocations: 1.349 MB / 356.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.995e-05/0.219, allocations: 110.8 kB / 356.3 MB, free: 7.812 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001284/0.2203, allocations: 0.9017 MB / 357.2 MB, free: 6.887 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.481e-05/0.2203, allocations: 33.7 kB / 357.2 MB, free: 6.848 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004675/0.2208, allocations: 0.5954 MB / 357.8 MB, free: 6.242 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001251/0.2209, allocations: 153.8 kB / 358 MB, free: 6.09 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.225e-05/0.221, allocations: 61.69 kB / 358 MB, free: 6.023 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001498/0.2212, allocations: 334 kB / 358.4 MB, free: 5.691 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003164/0.2215, allocations: 169.9 kB / 358.5 MB, free: 5.527 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005743/0.2221, allocations: 0.4938 MB / 359 MB, free: 4.887 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009375/0.223, allocations: 0.6909 MB / 359.7 MB, free: 4.051 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.41e-06/0.2231, allocations: 4 kB / 359.7 MB, free: 4.047 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001285/0.2244, allocations: 0.7622 MB / 360.5 MB, free: 3.273 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002994/0.2247, allocations: 396.9 kB / 360.9 MB, free: 2.738 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.2247, allocations: 8 kB / 360.9 MB, free: 2.73 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001859/0.2249, allocations: 40.84 kB / 360.9 MB, free: 2.688 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000551/0.2254, allocations: 171.7 kB / 361.1 MB, free: 2.52 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001205/0.2267, allocations: 1.288 MB / 362.4 MB, free: 1.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006351/0.2273, allocations: 43.83 kB / 362.4 MB, free: 1.055 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.813e-05/0.2274, allocations: 36 kB / 362.5 MB, free: 1.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.474e-06/0.2274, allocations: 4 kB / 362.5 MB, free: 1.016 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009911/0.2284, allocations: 0.6256 MB / 363.1 MB, free: 396 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.205e-05/0.2284, allocations: 15.94 kB / 363.1 MB, free: 380 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.545e-05/0.2285, allocations: 28.86 kB / 363.1 MB, free: 348 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005028/0.229, allocations: 167.7 kB / 363.3 MB, free: 180 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009577/0.23, allocations: 1.296 MB / 364.6 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005505/0.2305, allocations: 35.84 kB / 364.6 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.116e-05/0.2306, allocations: 35.98 kB / 364.7 MB, free: 14.68 MB / 318.1 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.0005336/0.2311, allocations: 341 kB / 365 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001362/0.2313, allocations: 90.88 kB / 365.1 MB, free: 14.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008669/0.2321, allocations: 447.1 kB / 365.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.2322, allocations: 4 kB / 365.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.695e-06/0.2322, allocations: 0 / 365.5 MB, free: 13.8 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.883e-06/0.2322, allocations: 3.984 kB / 365.5 MB, free: 13.79 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002114/0.2343, allocations: 1.398 MB / 366.9 MB, free: 12.32 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.314e-06/0.2343, allocations: 4 kB / 366.9 MB, free: 12.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003536/0.2347, allocations: 84.11 kB / 367 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.59e-05/0.2348, allocations: 24.84 kB / 367 MB, free: 12.2 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.507e-05/0.2348, allocations: 11.94 kB / 367 MB, free: 12.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0009675/0.2358, allocations: 1.284 MB / 368.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.944e-06/0.2358, allocations: 0 / 368.3 MB, free: 10.77 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001085/0.2369, allocations: 0.7366 MB / 369.1 MB, free: 9.992 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002629/0.2372, allocations: 204 kB / 369.3 MB, free: 9.773 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.96e-05/0.2373, allocations: 12 kB / 369.3 MB, free: 9.762 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003744/0.2376, allocations: 31.97 kB / 369.3 MB, free: 9.73 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.124e-05/0.2377, allocations: 27.91 kB / 369.3 MB, free: 9.703 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.24e-05/0.2377, allocations: 12 kB / 369.4 MB, free: 9.691 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0008358/0.2386, allocations: 0.6094 MB / 370 MB, free: 9.07 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2386, allocations: 0 / 370 MB, free: 9.07 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001184/0.2398, allocations: 348 kB / 370.3 MB, free: 8.73 MB / 318.1 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.0002239/0.24, allocations: 123.2 kB / 370.4 MB, free: 8.602 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001629/0.2416, allocations: 0.975 MB / 371.4 MB, free: 7.605 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 7.114e-06/0.2417, allocations: 8.375 kB / 371.4 MB, free: 7.598 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004285/0.2421, allocations: 290.4 kB / 371.7 MB, free: 7.301 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001422/0.2435, allocations: 235.1 kB / 371.9 MB, free: 7.074 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003295/0.2468, allocations: 2.353 MB / 374.3 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006251/0.2475, allocations: 1.029 MB / 375.3 MB, free: 3.609 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005129/0.248, allocations: 123.4 kB / 375.4 MB, free: 3.484 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001421/0.2482, allocations: 59.38 kB / 375.5 MB, free: 3.426 MB / 318.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2482, allocations: 8 kB / 375.5 MB, free: 3.418 MB / 318.1 MB Notification: Performance of Templates: time 0.2485/0.4967, allocations: 10.06 MB / 385.5 MB, free: 49.38 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled_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_CurrentControlled/DCPM_CurrentControlled.csv","../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches