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.001411/0.001411, allocations: 107.4 kB / 17.16 MB, free: 6.305 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.001686/0.001686, allocations: 198 kB / 18.07 MB, free: 5.41 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.907/1.907, allocations: 205.1 MB / 223.9 MB, free: 12.47 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.001527/0.001527, allocations: 47.92 kB / 280 MB, free: 3.598 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1513/0.1528, allocations: 46.63 MB / 326.6 MB, free: 4.906 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.DCMachines.DCPM_CurrentControlled): time 0.01006/0.1629, allocations: 8.111 MB / 334.7 MB, free: 12.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.006464/0.1694, allocations: 2.712 MB / 337.4 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.001435/0.171, allocations: 23.94 kB / 337.4 MB, free: 9.996 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001777/0.1728, allocations: 465.4 kB / 337.9 MB, free: 9.539 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001601/0.1744, allocations: 389.3 kB / 338.3 MB, free: 9.156 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009433/0.1754, allocations: 315.7 kB / 338.6 MB, free: 8.848 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001652/0.177, allocations: 1.433 MB / 340 MB, free: 7.406 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0008268/0.1778, allocations: 0.5252 MB / 340.5 MB, free: 6.855 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007708/0.1786, allocations: 0.4976 MB / 341 MB, free: 6.355 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006411/0.1793, allocations: 0.5714 MB / 341.6 MB, free: 5.781 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001604/0.1795, allocations: 84 kB / 341.7 MB, free: 5.699 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003687/0.1798, allocations: 124 kB / 341.8 MB, free: 5.578 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.1801, allocations: 234.9 kB / 342 MB, free: 5.348 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0006519/0.1807, allocations: 0.6177 MB / 342.7 MB, free: 4.727 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002239/0.183, allocations: 1.643 MB / 344.3 MB, free: 3.078 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.006e-05/0.183, allocations: 4 kB / 344.3 MB, free: 3.074 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.543e-06/0.183, allocations: 0 / 344.3 MB, free: 3.074 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.82e-05/0.183, allocations: 0 / 344.3 MB, free: 3.074 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.003061/0.1861, allocations: 1.511 MB / 345.8 MB, free: 1.508 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.616e-05/0.1862, allocations: 8.031 kB / 345.8 MB, free: 1.5 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007734/0.1869, allocations: 187.2 kB / 346 MB, free: 1.316 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001293/0.1883, allocations: 0.786 MB / 346.8 MB, free: 500 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.287e-05/0.1883, allocations: 74.12 kB / 346.9 MB, free: 428 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001407/0.1885, allocations: 104 kB / 347 MB, free: 324 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001783/0.1903, allocations: 0.9536 MB / 347.9 MB, free: 15.32 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.943e-05/0.1903, allocations: 7.906 kB / 347.9 MB, free: 15.31 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.419e-05/0.1904, allocations: 40 kB / 348 MB, free: 15.27 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.636e-05/0.1905, allocations: 24 kB / 348 MB, free: 15.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00135/0.1918, allocations: 0.6363 MB / 348.6 MB, free: 14.61 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006703/0.1985, allocations: 4.131 MB / 352.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001021/0.1996, allocations: 423 kB / 353.2 MB, free: 9.836 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003089/0.1999, allocations: 165.4 kB / 353.3 MB, free: 9.672 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.448e-05/0.1999, allocations: 7.75 kB / 353.3 MB, free: 9.664 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.163e-05/0.2, allocations: 34.56 kB / 353.4 MB, free: 9.621 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 5.1e-06/0.2, allocations: 4 kB / 353.4 MB, free: 9.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=40): time 0.002863/0.2029, allocations: 1.314 MB / 354.7 MB, free: 8.23 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.061e-05/0.203, allocations: 118.8 kB / 354.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001674/0.2047, allocations: 0.8979 MB / 355.7 MB, free: 7.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.777e-05/0.2047, allocations: 33.7 kB / 355.7 MB, free: 7.129 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0005814/0.2053, allocations: 0.5954 MB / 356.3 MB, free: 6.523 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001936/0.2055, allocations: 145.9 kB / 356.5 MB, free: 6.379 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.2057, allocations: 142.5 kB / 356.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002833/0.206, allocations: 330 kB / 356.9 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003801/0.2064, allocations: 180.7 kB / 357.1 MB, free: 5.727 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006056/0.207, allocations: 489.7 kB / 357.6 MB, free: 5.102 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009617/0.208, allocations: 0.6831 MB / 358.3 MB, free: 4.273 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.511e-06/0.208, allocations: 7.938 kB / 358.3 MB, free: 4.266 MB / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization): time 0.001306/0.2093, allocations: 0.7546 MB / 359 MB, free: 3.5 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.071e-05/0.2094, allocations: 8 kB / 359.1 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.782e-05/0.2094, allocations: 16.09 kB / 359.1 MB, free: 3.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001805/0.2096, allocations: 32.84 kB / 359.1 MB, free: 3.441 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007007/0.2103, allocations: 167.7 kB / 359.3 MB, free: 3.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001513/0.2118, allocations: 1.292 MB / 360.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006008/0.2124, allocations: 35.89 kB / 360.6 MB, free: 1.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.394e-05/0.2125, allocations: 36 kB / 360.6 MB, free: 1.785 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization_lambda0): time 0.0006517/0.2132, allocations: 354.1 kB / 361 MB, free: 1.434 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization_lambda0): time 0.0006035/0.2138, allocations: 485.8 kB / 361.4 MB, free: 0.8125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization_lambda0): time 0.0008946/0.2147, allocations: 0.6599 MB / 362.1 MB, free: 8 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization_lambda0): time 6.943e-06/0.2147, allocations: 7.984 kB / 362.1 MB, free: 0 / 302.1 MB Notification: Performance of matching and sorting (n=91) (initialization_lambda0): time 0.001208/0.2159, allocations: 0.7157 MB / 362.8 MB, free: 15.27 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.2159, allocations: 12 kB / 362.8 MB, free: 15.26 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.743e-05/0.216, allocations: 8 kB / 362.9 MB, free: 15.25 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000107/0.2161, allocations: 36.84 kB / 362.9 MB, free: 15.21 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005172/0.2166, allocations: 163.8 kB / 363 MB, free: 15.05 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001673/0.2183, allocations: 1.3 MB / 364.3 MB, free: 13.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006074/0.2189, allocations: 40.05 kB / 364.4 MB, free: 13.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.471e-05/0.219, allocations: 36 kB / 364.4 MB, free: 13.55 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.0002543/0.2192, allocations: 224 kB / 364.6 MB, free: 13.32 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001457/0.2194, allocations: 90.88 kB / 364.7 MB, free: 13.23 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009489/0.2204, allocations: 443 kB / 365.2 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.635e-06/0.2204, allocations: 8 kB / 365.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.392e-06/0.2204, allocations: 0 / 365.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.771e-06/0.2204, allocations: 3.938 kB / 365.2 MB, free: 12.78 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002336/0.2227, allocations: 1.386 MB / 366.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.53e-06/0.2228, allocations: 4 kB / 366.6 MB, free: 11.31 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003491/0.2231, allocations: 71.91 kB / 366.6 MB, free: 11.24 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.293e-05/0.2232, allocations: 24.84 kB / 366.7 MB, free: 11.21 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.899e-05/0.2233, allocations: 16.16 kB / 366.7 MB, free: 11.2 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001397/0.2247, allocations: 1.276 MB / 367.9 MB, free: 9.785 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.47e-06/0.2247, allocations: 4 kB / 368 MB, free: 9.781 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001173/0.2259, allocations: 0.7209 MB / 368.7 MB, free: 9.02 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003018/0.2262, allocations: 200 kB / 368.9 MB, free: 8.805 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001278/0.2263, allocations: 16 kB / 368.9 MB, free: 8.789 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003947/0.2267, allocations: 15.98 kB / 368.9 MB, free: 8.773 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.859e-05/0.2268, allocations: 39.84 kB / 368.9 MB, free: 8.734 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.003e-05/0.2269, allocations: 15.98 kB / 369 MB, free: 8.719 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.001199/0.2281, allocations: 0.6055 MB / 369.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.2281, allocations: 0 / 369.6 MB, free: 8.102 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001528/0.2296, allocations: 351.9 kB / 369.9 MB, free: 7.758 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.0002823/0.2299, allocations: 119.2 kB / 370 MB, free: 7.633 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.001927/0.2318, allocations: 0.9664 MB / 371 MB, free: 6.645 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.2319, allocations: 0 / 371 MB, free: 6.645 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004456/0.2323, allocations: 283.8 kB / 371.3 MB, free: 6.355 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001337/0.2337, allocations: 223.5 kB / 371.5 MB, free: 6.137 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003529/0.2372, allocations: 2.26 MB / 373.7 MB, free: 3.824 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006909/0.2379, allocations: 1.025 MB / 374.8 MB, free: 2.77 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005917/0.2385, allocations: 127.4 kB / 374.9 MB, free: 2.641 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001426/0.2387, allocations: 55.44 kB / 374.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of SimCode: time 1.413e-06/0.2387, allocations: 0 / 374.9 MB, free: 2.586 MB / 318.1 MB Notification: Performance of Templates: time 0.2069/0.4455, allocations: 10.15 MB / 385.1 MB, free: 50.3 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