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.001444/0.001448, allocations: 185.8 kB / 16.41 MB, free: 5.723 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.895/1.895, allocations: 205.4 MB / 222.5 MB, free: 9.125 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.001137/0.001137, allocations: 96.11 kB / 270.9 MB, free: 8.383 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003847/0.0003847, allocations: 8 kB / 327 MB, free: 208 kB / 266.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3257/0.3262, allocations: 47.57 MB / 374.5 MB, free: 45.4 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1785/0.5047, allocations: 115.4 MB / 490 MB, free: 13.29 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003253/0.5051, allocations: 87.95 kB / 490 MB, free: 13.21 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.4209/0.9261, allocations: 39.47 MB / 0.5171 GB, free: 97.89 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.354e-06/0.9261, allocations: 0 / 0.5171 GB, free: 97.89 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001533/0.9263, allocations: 37.09 kB / 0.5171 GB, free: 97.88 MB / 378.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.00562/0.9319, allocations: 1.743 MB / 0.5188 GB, free: 96.62 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.743e-05/0.932, allocations: 11.06 kB / 0.5189 GB, free: 96.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001527/0.9335, allocations: 248.2 kB / 0.5191 GB, free: 96.5 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003442/0.937, allocations: 1.071 MB / 0.5201 GB, free: 95.68 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001165/0.9372, allocations: 121.7 kB / 0.5202 GB, free: 95.62 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004327/0.9377, allocations: 159.9 kB / 0.5204 GB, free: 95.57 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00413/0.9418, allocations: 1.417 MB / 0.5218 GB, free: 94.58 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.399e-05/0.942, allocations: 0 / 0.5218 GB, free: 94.58 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001887/0.9422, allocations: 64 kB / 0.5218 GB, free: 94.52 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.146e-05/0.9422, allocations: 36 kB / 0.5219 GB, free: 94.48 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.003439/0.9457, allocations: 0.9712 MB / 0.5228 GB, free: 93.51 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01298/0.9587, allocations: 6.213 MB / 0.5289 GB, free: 87.03 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001793/0.9605, allocations: 0.6737 MB / 0.5296 GB, free: 86.31 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.263e-05/0.9606, allocations: 4.438 kB / 0.5296 GB, free: 86.3 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.718e-05/0.9607, allocations: 39 kB / 0.5296 GB, free: 86.26 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 4.258e-06/0.9607, allocations: 4 kB / 0.5296 GB, free: 86.25 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.005/0.9657, allocations: 1.757 MB / 0.5313 GB, free: 84.42 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.481e-05/0.9658, allocations: 85.55 kB / 0.5314 GB, free: 84.32 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.002082/0.9679, allocations: 0.9537 MB / 0.5323 GB, free: 83.36 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001327/0.9681, allocations: 37.7 kB / 0.5324 GB, free: 83.31 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004959/0.9686, allocations: 0.8009 MB / 0.5331 GB, free: 82.51 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001948/0.9688, allocations: 200.9 kB / 0.5333 GB, free: 82.31 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.402e-05/0.9689, allocations: 16 kB / 0.5334 GB, free: 82.3 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 9.361e-05/0.969, allocations: 350.8 kB / 0.5337 GB, free: 81.95 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007997/0.9698, allocations: 245.9 kB / 0.5339 GB, free: 81.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009303/0.9707, allocations: 0.6251 MB / 0.5345 GB, free: 80.9 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001001/0.9718, allocations: 354 kB / 0.5349 GB, free: 80.55 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.044e-05/0.9718, allocations: 4 kB / 0.5349 GB, free: 80.55 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002382/0.9742, allocations: 0.9368 MB / 0.5358 GB, free: 79.6 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001002/0.9752, allocations: 5.134 MB / 0.5408 GB, free: 74.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.674e-05/0.9753, allocations: 12 kB / 0.5408 GB, free: 74.05 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002688/0.9756, allocations: 48.84 kB / 0.5409 GB, free: 74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001517/0.9771, allocations: 231.6 kB / 0.5411 GB, free: 73.77 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001006/0.9781, allocations: 1.299 MB / 0.5424 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001373/0.9795, allocations: 51.94 kB / 0.5424 GB, free: 72.29 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001171/0.9797, allocations: 56.06 kB / 0.5425 GB, free: 72.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.262e-05/0.9797, allocations: 8 kB / 0.5425 GB, free: 72.23 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001876/0.9816, allocations: 0.8144 MB / 0.5433 GB, free: 71.41 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.773e-05/0.9817, allocations: 12 kB / 0.5433 GB, free: 71.4 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001323/0.9818, allocations: 41.5 kB / 0.5433 GB, free: 71.36 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001268/0.9831, allocations: 227.6 kB / 0.5435 GB, free: 71.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0009187/0.984, allocations: 1.295 MB / 0.5448 GB, free: 69.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007198/0.9848, allocations: 39.98 kB / 0.5448 GB, free: 69.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.328e-05/0.9849, allocations: 44 kB / 0.5449 GB, free: 69.62 MB / 378.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 (123): * Single equations (assignments): 122 * 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.000957/0.9858, allocations: 416.1 kB / 0.5453 GB, free: 69.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003226/0.9862, allocations: 114.6 kB / 0.5454 GB, free: 69.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001671/0.9878, allocations: 0.5793 MB / 0.5459 GB, free: 68.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.013e-05/0.9879, allocations: 15.98 kB / 0.546 GB, free: 68.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.17e-06/0.9879, allocations: 0 / 0.546 GB, free: 68.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.907e-06/0.9879, allocations: 0 / 0.546 GB, free: 68.49 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0042/0.9921, allocations: 1.857 MB / 0.5478 GB, free: 66.56 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.053e-06/0.9922, allocations: 0 / 0.5478 GB, free: 66.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009728/0.9932, allocations: 115.8 kB / 0.5479 GB, free: 66.45 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001407/0.9933, allocations: 25.08 kB / 0.5479 GB, free: 66.42 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.433e-05/0.9934, allocations: 15.98 kB / 0.5479 GB, free: 66.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008747/0.9943, allocations: 1.284 MB / 0.5492 GB, free: 64.99 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.116e-06/0.9943, allocations: 0 / 0.5492 GB, free: 64.99 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002307/0.9966, allocations: 1.033 MB / 0.5502 GB, free: 63.88 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006682/0.9973, allocations: 231.6 kB / 0.5504 GB, free: 63.63 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002128/0.9976, allocations: 19.98 kB / 0.5504 GB, free: 63.61 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008815/0.9985, allocations: 39.98 kB / 0.5505 GB, free: 63.57 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001103/0.9986, allocations: 40.38 kB / 0.5505 GB, free: 63.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.352e-05/0.9986, allocations: 23.98 kB / 0.5505 GB, free: 63.51 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.00143/1, allocations: 0.7166 MB / 0.5512 GB, free: 62.79 MB / 378.7 MB Notification: Performance of sort global known variables: time 7.32e-07/1, allocations: 0 / 0.5512 GB, free: 62.79 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002507/1.003, allocations: 0.5039 MB / 0.5517 GB, free: 62.29 MB / 378.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.vMotFilter.y,armatureInverter.iDCFilter.y,armatureInverter.idealDcDc.deadTime.y,armatureInverter.idealDcDc.powerController.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.0006766/1.003, allocations: 395.4 kB / 0.5521 GB, free: 61.93 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.003077/1.006, allocations: 1.265 MB / 0.5533 GB, free: 60.64 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 8.887e-06/1.007, allocations: 0 / 0.5533 GB, free: 60.64 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008129/1.007, allocations: 365.8 kB / 0.5537 GB, free: 60.27 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002069/1.009, allocations: 262 kB / 0.5539 GB, free: 60.02 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006181/1.016, allocations: 3.13 MB / 0.557 GB, free: 56.84 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007576/1.016, allocations: 1.2 MB / 0.5582 GB, free: 55.61 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004571/1.017, allocations: 79.44 kB / 0.5582 GB, free: 55.53 MB / 378.7 MB Notification: Performance of SimCode: time 1.913e-06/1.017, allocations: 0 / 0.5582 GB, free: 55.53 MB / 378.7 MB Notification: Performance of Templates: time 0.0394/1.056, allocations: 23.19 MB / 0.5809 GB, free: 32.32 MB / 378.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/jenkins1/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