Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) 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 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") translateModel(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM,tolerance=1e-06,outputFormat="mat",numberOfIntervals=40000,variableFilter="time|armatureInverter.iDCFilter.y|armatureInverter.iMotFilter.y|armatureInverter.idealDcDc.deadTime.y|armatureInverter.idealDcDc.powerController.y|armatureInverter.vDCFilter.y|armatureInverter.vMotFilter.y|currentController.integrator.y|dcpm.la.i|loadInertia.phi|loadInertia.w",fileNamePrefix="Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002258/0.002258, allocations: 179.2 kB / 16.41 MB, free: 5.707 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.656/1.656, allocations: 205.4 MB / 222.5 MB, free: 9.113 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007674/0.0007675, allocations: 94.28 kB / 270.9 MB, free: 8.352 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003212/0.0003212, allocations: 8 kB / 327 MB, free: 188 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3044, allocations: 47.57 MB / 374.6 MB, free: 45.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM): time 0.01287/0.3173, allocations: 12.32 MB / 386.9 MB, free: 35.77 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.01042/0.3278, allocations: 4.83 MB / 391.7 MB, free: 31.65 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00327/0.3311, allocations: 51.81 kB / 391.8 MB, free: 31.6 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.001989/0.3331, allocations: 0.7225 MB / 392.5 MB, free: 30.88 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.001765/0.3349, allocations: 440.7 kB / 392.9 MB, free: 30.44 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.00101/0.3359, allocations: 319.6 kB / 393.2 MB, free: 30.13 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.001772/0.3377, allocations: 1.921 MB / 395.1 MB, free: 28.2 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0009377/0.3386, allocations: 0.765 MB / 395.9 MB, free: 27.4 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006685/0.3393, allocations: 0.5871 MB / 396.5 MB, free: 26.81 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005674/0.3399, allocations: 0.6762 MB / 397.2 MB, free: 26.13 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 0.0001338/0.34, allocations: 92 kB / 397.3 MB, free: 26.04 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003194/0.3403, allocations: 136 kB / 397.4 MB, free: 25.91 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001821/0.3405, allocations: 278.7 kB / 397.7 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0002355/0.3408, allocations: 360.8 kB / 398 MB, free: 25.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.001383/0.3422, allocations: 2.177 MB / 400.2 MB, free: 23.09 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 6.282e-06/0.3422, allocations: 4 kB / 400.2 MB, free: 23.09 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.504e-06/0.3422, allocations: 4 kB / 400.2 MB, free: 23.09 MB / 298.7 MB Notification: Performance of Transformations before backend: time 2.444e-05/0.3422, allocations: 0 / 400.2 MB, free: 23.09 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: 379 * Number of variables: 379 Notification: Performance of Generate backend data structure: time 0.002687/0.3449, allocations: 1.762 MB / 402 MB, free: 21.27 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.116e-05/0.345, allocations: 8.031 kB / 402 MB, free: 21.26 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000628/0.3456, allocations: 257.5 kB / 402.2 MB, free: 21 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001305/0.3469, allocations: 0.981 MB / 403.2 MB, free: 19.98 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.138e-05/0.347, allocations: 115 kB / 403.3 MB, free: 19.87 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000155/0.3472, allocations: 155.9 kB / 403.5 MB, free: 19.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002154/0.3493, allocations: 1.435 MB / 404.9 MB, free: 18.22 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.405e-05/0.3494, allocations: 0 / 404.9 MB, free: 18.22 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001003/0.3495, allocations: 64 kB / 405 MB, free: 18.16 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.494e-05/0.3495, allocations: 36 kB / 405 MB, free: 18.12 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001575/0.3511, allocations: 0.9634 MB / 406 MB, free: 17.16 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006243/0.3573, allocations: 6.195 MB / 412.2 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000976/0.3583, allocations: 0.6482 MB / 412.8 MB, free: 9.965 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0004011/0.3588, allocations: 243 kB / 413 MB, free: 9.727 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.819e-05/0.3588, allocations: 8.438 kB / 413.1 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.385e-05/0.3588, allocations: 42.98 kB / 413.1 MB, free: 9.668 MB / 298.7 MB Notification: Performance of pre-optimization done (n=51): time 2.364e-06/0.3588, allocations: 0 / 413.1 MB, free: 9.668 MB / 298.7 MB Notification: Performance of matching and sorting (n=54): time 0.002754/0.3616, allocations: 1.761 MB / 414.9 MB, free: 7.828 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.423e-05/0.3617, allocations: 81.55 kB / 414.9 MB, free: 7.73 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001231/0.3629, allocations: 1.116 MB / 416.1 MB, free: 6.602 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 3.05e-05/0.3629, allocations: 37.7 kB / 416.1 MB, free: 6.559 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003874/0.3633, allocations: 0.8053 MB / 416.9 MB, free: 5.742 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001146/0.3634, allocations: 209.2 kB / 417.1 MB, free: 5.535 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.928e-05/0.3635, allocations: 20 kB / 417.1 MB, free: 5.516 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.293e-05/0.3636, allocations: 345.9 kB / 417.5 MB, free: 5.172 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004087/0.364, allocations: 237.9 kB / 417.7 MB, free: 4.941 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000576/0.3646, allocations: 0.6329 MB / 418.3 MB, free: 4.129 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000506/0.3651, allocations: 346 kB / 418.7 MB, free: 3.789 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.929e-06/0.3651, allocations: 4 kB / 418.7 MB, free: 3.785 MB / 298.7 MB Notification: Performance of matching and sorting (n=123) (initialization): time 0.001371/0.3665, allocations: 1.014 MB / 419.7 MB, free: 2.758 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0002613/0.3668, allocations: 477.3 kB / 420.1 MB, free: 2.109 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.578e-05/0.3668, allocations: 19.92 kB / 420.2 MB, free: 2.09 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000163/0.3669, allocations: 36.86 kB / 420.2 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006746/0.3676, allocations: 231.6 kB / 420.4 MB, free: 1.824 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007796/0.3684, allocations: 1.299 MB / 421.7 MB, free: 400 kB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006176/0.369, allocations: 47.89 kB / 421.8 MB, free: 352 kB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.173e-05/0.3691, allocations: 48 kB / 421.8 MB, free: 304 kB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.58e-06/0.3691, allocations: 8.094 kB / 421.8 MB, free: 296 kB / 298.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001171/0.3703, allocations: 0.8105 MB / 422.6 MB, free: 15.47 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.515e-05/0.3703, allocations: 16 kB / 422.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.169e-05/0.3704, allocations: 41.39 kB / 422.7 MB, free: 15.41 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006654/0.3711, allocations: 223.6 kB / 422.9 MB, free: 15.2 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008749/0.372, allocations: 1.296 MB / 424.2 MB, free: 13.77 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005406/0.3725, allocations: 39.91 kB / 424.2 MB, free: 13.73 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.775e-05/0.3726, allocations: 51.92 kB / 424.3 MB, free: 13.68 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 59 * Number of states: 0 () * Number of discrete variables: 2 (currentController.integrator.local_reset,armatureInverter.idealDcDc.powerController.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (122): * Single equations (assignments): 121 * 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.0006395/0.3733, allocations: 408.8 kB / 424.7 MB, free: 13.27 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000159/0.3734, allocations: 122.5 kB / 424.8 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001083/0.3745, allocations: 0.5791 MB / 425.4 MB, free: 12.56 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.071e-06/0.3745, allocations: 12 kB / 425.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.705e-06/0.3745, allocations: 0 / 425.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.133e-06/0.3745, allocations: 3.984 kB / 425.4 MB, free: 12.55 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002792/0.3773, allocations: 1.882 MB / 427.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.975e-06/0.3774, allocations: 0 / 427.3 MB, free: 10.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004808/0.3779, allocations: 107.9 kB / 427.4 MB, free: 10.48 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.313e-05/0.3779, allocations: 29.03 kB / 427.4 MB, free: 10.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.998e-05/0.378, allocations: 27.92 kB / 427.5 MB, free: 10.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008474/0.3788, allocations: 1.272 MB / 428.7 MB, free: 9.012 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.067e-06/0.3789, allocations: 3.938 kB / 428.7 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00142/0.3803, allocations: 0.9384 MB / 429.7 MB, free: 8.031 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000307/0.3806, allocations: 239.6 kB / 429.9 MB, free: 7.777 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001076/0.3807, allocations: 15.98 kB / 429.9 MB, free: 7.762 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004813/0.3812, allocations: 39.98 kB / 430 MB, free: 7.723 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.402e-05/0.3813, allocations: 36.39 kB / 430 MB, free: 7.688 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.899e-05/0.3813, allocations: 19.98 kB / 430 MB, free: 7.668 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.001001/0.3823, allocations: 0.7518 MB / 430.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.61e-07/0.3824, allocations: 3.938 kB / 430.8 MB, free: 6.906 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.001452/0.3838, allocations: 468 kB / 431.2 MB, free: 6.449 MB / 314.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 8 * Number of states: 10 (loadInertia.w,dcpm.la.i,armatureInverter.vDCFilter.y,armatureInverter.iMotFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.y,armatureInverter.vMotFilter.y,armatureInverter.iDCFilter.y,currentController.integrator.y,loadTorque.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 (53): * Single equations (assignments): 52 * 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.0002722/0.3841, allocations: 130.6 kB / 431.4 MB, free: 6.312 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002044/0.3861, allocations: 1.258 MB / 432.6 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.577e-06/0.3862, allocations: 0 / 432.6 MB, free: 5.031 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005723/0.3867, allocations: 369.7 kB / 433 MB, free: 4.66 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001273/0.388, allocations: 283.4 kB / 433.2 MB, free: 4.391 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004375/0.3924, allocations: 3.12 MB / 436.4 MB, free: 1.211 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007313/0.3932, allocations: 1.173 MB / 437.5 MB, free: 8 kB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002287/0.3934, allocations: 79.42 kB / 437.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of SimCode: time 2.555e-06/0.3934, allocations: 3.938 kB / 437.6 MB, free: 15.93 MB / 330.7 MB Notification: Performance of Templates: time 0.03613/0.4295, allocations: 22.8 MB / 460.4 MB, free: 9.125 MB / 346.7 MB make -j1 -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM --alarm=480 -emit_protected > Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_3.2.3_cpp_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches