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.001612/0.001612, allocations: 93.94 kB / 16.93 MB, free: 5.984 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.002012/0.002012, allocations: 180.7 kB / 17.82 MB, free: 5.652 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.025/2.025, allocations: 205.4 MB / 224 MB, free: 13.17 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.0005558/0.0005562, allocations: 16 kB / 280.8 MB, free: 3.746 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1226/0.1231, allocations: 47.58 MB / 328.3 MB, free: 4.098 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.008886/0.1321, allocations: 6.597 MB / 334.9 MB, free: 13.46 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006022/0.1381, allocations: 2.613 MB / 337.5 MB, free: 10.84 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001567/0.1397, allocations: 31.88 kB / 337.6 MB, free: 10.81 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001823/0.1416, allocations: 433.8 kB / 338 MB, free: 10.38 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.003009/0.1446, allocations: 474.6 kB / 338.5 MB, free: 9.918 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001672/0.1463, allocations: 247.6 kB / 338.7 MB, free: 9.676 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.003947/0.1503, allocations: 1.05 MB / 339.7 MB, free: 8.621 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001447/0.1518, allocations: 444.4 kB / 340.2 MB, free: 8.172 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.001259/0.153, allocations: 422.2 kB / 340.6 MB, free: 7.758 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.00133/0.1544, allocations: 477.6 kB / 341.1 MB, free: 7.289 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0003641/0.1548, allocations: 60 kB / 341.1 MB, free: 7.23 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0006372/0.1554, allocations: 103.9 kB / 341.2 MB, free: 7.129 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002693/0.1557, allocations: 179.2 kB / 341.4 MB, free: 6.953 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005407/0.1562, allocations: 261 kB / 341.7 MB, free: 6.691 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001723/0.158, allocations: 1.278 MB / 342.9 MB, free: 5.41 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.158, allocations: 0 / 342.9 MB, free: 5.41 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.074e-06/0.158, allocations: 0 / 342.9 MB, free: 5.41 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.737e-05/0.1581, allocations: 0 / 342.9 MB, free: 5.41 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.002472/0.1605, allocations: 1.296 MB / 344.2 MB, free: 4.059 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.1606, allocations: 16.02 kB / 344.2 MB, free: 4.043 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005145/0.1611, allocations: 170.4 kB / 344.4 MB, free: 3.875 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001261/0.1624, allocations: 0.758 MB / 345.2 MB, free: 3.074 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.652e-05/0.1625, allocations: 74 kB / 345.2 MB, free: 3.004 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001447/0.1626, allocations: 103.9 kB / 345.3 MB, free: 2.902 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00162/0.1643, allocations: 0.938 MB / 346.3 MB, free: 1.922 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.196e-05/0.1643, allocations: 4 kB / 346.3 MB, free: 1.918 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.167e-05/0.1644, allocations: 40 kB / 346.3 MB, free: 1.879 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.624e-05/0.1644, allocations: 27.98 kB / 346.3 MB, free: 1.852 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001153/0.1656, allocations: 0.6441 MB / 347 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006001/0.1716, allocations: 4.088 MB / 351.1 MB, free: 12.9 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001408/0.173, allocations: 459.2 kB / 351.5 MB, free: 12.44 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.102e-05/0.1731, allocations: 8.625 kB / 351.5 MB, free: 12.43 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.681e-05/0.1731, allocations: 38.56 kB / 351.6 MB, free: 12.39 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 2.916e-06/0.1732, allocations: 3.938 kB / 351.6 MB, free: 12.38 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.003501/0.1767, allocations: 1.344 MB / 352.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.788e-05/0.1768, allocations: 110.8 kB / 353 MB, free: 10.83 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001441/0.1782, allocations: 0.8354 MB / 353.9 MB, free: 9.973 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 5.554e-05/0.1783, allocations: 33.7 kB / 353.9 MB, free: 9.934 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005905/0.1789, allocations: 0.5876 MB / 354.5 MB, free: 9.336 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001531/0.1791, allocations: 149.9 kB / 354.6 MB, free: 9.188 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.997e-05/0.1791, allocations: 16 kB / 354.6 MB, free: 9.172 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001807/0.1793, allocations: 334 kB / 355 MB, free: 8.84 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004587/0.1798, allocations: 173.9 kB / 355.1 MB, free: 8.672 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007415/0.1805, allocations: 489.7 kB / 355.6 MB, free: 8.047 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005935/0.1811, allocations: 247.7 kB / 355.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.779e-06/0.1812, allocations: 0 / 355.9 MB, free: 7.805 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001695/0.1829, allocations: 0.7546 MB / 356.6 MB, free: 7.039 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.00219/0.1851, allocations: 4.093 MB / 360.7 MB, free: 2.625 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.561e-05/0.1851, allocations: 11.94 kB / 360.7 MB, free: 2.613 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002298/0.1854, allocations: 32.84 kB / 360.8 MB, free: 2.578 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008531/0.1862, allocations: 179.7 kB / 360.9 MB, free: 2.402 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001299/0.1875, allocations: 1.299 MB / 362.2 MB, free: 0.9648 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008597/0.1884, allocations: 40.14 kB / 362.3 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.644e-05/0.1885, allocations: 40 kB / 362.3 MB, free: 0.8867 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.096e-05/0.1885, allocations: 4 kB / 362.3 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001325/0.1899, allocations: 0.6136 MB / 362.9 MB, free: 272 kB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.716e-05/0.1899, allocations: 12 kB / 362.9 MB, free: 260 kB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001265/0.19, allocations: 36.84 kB / 363 MB, free: 220 kB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007399/0.1908, allocations: 159.8 kB / 363.1 MB, free: 60 kB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001157/0.1919, allocations: 1.3 MB / 364.4 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00076/0.1927, allocations: 35.98 kB / 364.5 MB, free: 14.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.095e-05/0.1928, allocations: 32.25 kB / 364.5 MB, free: 14.56 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0007427/0.1936, allocations: 344.8 kB / 364.8 MB, free: 14.21 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001837/0.1937, allocations: 90.88 kB / 364.9 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001153/0.1949, allocations: 447.2 kB / 365.4 MB, free: 13.68 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.1949, allocations: 4 kB / 365.4 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.919e-06/0.1949, allocations: 0 / 365.4 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.053e-06/0.195, allocations: 0 / 365.4 MB, free: 13.67 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002788/0.1978, allocations: 1.363 MB / 366.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.009e-06/0.1978, allocations: 0 / 366.7 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005143/0.1983, allocations: 83.86 kB / 366.8 MB, free: 12.15 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001338/0.1985, allocations: 28.78 kB / 366.8 MB, free: 12.12 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.709e-05/0.1985, allocations: 8 kB / 366.8 MB, free: 12.11 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/0.1996, allocations: 1.28 MB / 368.1 MB, free: 10.7 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.59e-06/0.1996, allocations: 7.969 kB / 368.1 MB, free: 10.69 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001517/0.2012, allocations: 0.8122 MB / 368.9 MB, free: 9.797 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003876/0.2016, allocations: 192 kB / 369.1 MB, free: 9.59 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001304/0.2017, allocations: 12 kB / 369.1 MB, free: 9.578 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005035/0.2022, allocations: 19.98 kB / 369.2 MB, free: 9.559 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001035/0.2023, allocations: 39.91 kB / 369.2 MB, free: 9.52 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.123e-05/0.2024, allocations: 12 kB / 369.2 MB, free: 9.508 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001024/0.2034, allocations: 0.5548 MB / 369.8 MB, free: 8.941 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2034, allocations: 0 / 369.8 MB, free: 8.941 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001918/0.2054, allocations: 344 kB / 370.1 MB, free: 8.605 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 (linear and non-linear blocks): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems: 1 {(1,100.0%) 1} * Non-linear torn systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0002835/0.2057, allocations: 123.1 kB / 370.2 MB, free: 8.473 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002254/0.2079, allocations: 0.9745 MB / 371.2 MB, free: 7.477 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.128e-06/0.2079, allocations: 4.562 kB / 371.2 MB, free: 7.473 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005542/0.2085, allocations: 294.6 kB / 371.5 MB, free: 7.172 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00141/0.2099, allocations: 223.8 kB / 371.7 MB, free: 6.953 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004525/0.2145, allocations: 2.228 MB / 373.9 MB, free: 4.672 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009282/0.2154, allocations: 1.044 MB / 375 MB, free: 3.598 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0008208/0.2162, allocations: 123.2 kB / 375.1 MB, free: 3.473 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001739/0.2164, allocations: 55.44 kB / 375.2 MB, free: 3.418 MB / 318.1 MB Notification: Performance of SimCode: time 1.492e-06/0.2164, allocations: 0 / 375.2 MB, free: 3.418 MB / 318.1 MB Notification: Performance of Templates: time 0.2679/0.4844, allocations: 9.206 MB / 384.4 MB, free: 50.18 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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