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.002125/0.002125, allocations: 180.9 kB / 13.66 MB, free: 1.664 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.982/1.982, allocations: 205.2 MB / 219.4 MB, free: 14.28 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.00107/0.00107, allocations: 82.66 kB / 267.5 MB, free: 14.12 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 2.863e-05/2.88e-05, allocations: 4 kB / 321.5 MB, free: 17.83 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09432/0.09437, allocations: 47.57 MB / 369.1 MB, free: 2.199 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4845/0.5789, allocations: 115.3 MB / 484.4 MB, free: 10.23 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003026/0.5793, allocations: 89.47 kB / 484.5 MB, free: 10.18 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.1531/0.7324, allocations: 39.48 MB / 0.5117 GB, free: 4.059 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.523e-06/0.7325, allocations: 0 / 0.5117 GB, free: 4.059 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001339/0.7326, allocations: 40.12 kB / 0.5117 GB, free: 4.02 MB / 394.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.003918/0.7365, allocations: 1.526 MB / 0.5132 GB, free: 2.441 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.423e-05/0.7366, allocations: 12.03 kB / 0.5132 GB, free: 2.43 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001081/0.7377, allocations: 241.6 kB / 0.5135 GB, free: 2.191 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002889/0.7406, allocations: 1.063 MB / 0.5145 GB, free: 1.086 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001199/0.7407, allocations: 111 kB / 0.5146 GB, free: 0.9766 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003156/0.7411, allocations: 151.9 kB / 0.5148 GB, free: 0.8281 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.003501/0.7446, allocations: 1.365 MB / 0.5161 GB, free: 15.41 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.003e-05/0.7447, allocations: 15.8 kB / 0.5161 GB, free: 15.39 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001965/0.7449, allocations: 60 kB / 0.5162 GB, free: 15.33 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.477e-05/0.7449, allocations: 36 kB / 0.5162 GB, free: 15.3 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002596/0.7475, allocations: 0.8818 MB / 0.5171 GB, free: 14.41 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0121/0.7597, allocations: 6.221 MB / 0.5231 GB, free: 7.879 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001626/0.7613, allocations: 0.6293 MB / 0.5237 GB, free: 7.199 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005109/0.7619, allocations: 207.5 kB / 0.5239 GB, free: 6.996 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.987e-05/0.7619, allocations: 8.438 kB / 0.524 GB, free: 6.988 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.536e-05/0.762, allocations: 39 kB / 0.524 GB, free: 6.941 MB / 410.7 MB Notification: Performance of pre-optimization done (n=51): time 4.258e-06/0.762, allocations: 0 / 0.524 GB, free: 6.941 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.003294/0.7653, allocations: 1.359 MB / 0.5253 GB, free: 5.523 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.243e-05/0.7654, allocations: 93.48 kB / 0.5254 GB, free: 5.414 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001992/0.7674, allocations: 0.9394 MB / 0.5263 GB, free: 4.461 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 5.876e-05/0.7675, allocations: 37.7 kB / 0.5264 GB, free: 4.418 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0007059/0.7682, allocations: 0.796 MB / 0.5271 GB, free: 3.613 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002138/0.7684, allocations: 201.2 kB / 0.5273 GB, free: 3.414 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.747e-05/0.7685, allocations: 20 kB / 0.5273 GB, free: 3.395 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001499/0.7686, allocations: 354.7 kB / 0.5277 GB, free: 3.039 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005833/0.7692, allocations: 210 kB / 0.5279 GB, free: 2.832 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009014/0.7702, allocations: 0.5861 MB / 0.5285 GB, free: 2.059 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007826/0.771, allocations: 319 kB / 0.5288 GB, free: 1.746 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.488e-06/0.771, allocations: 4 kB / 0.5288 GB, free: 1.742 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002095/0.7731, allocations: 0.8548 MB / 0.5296 GB, free: 0.875 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.2727/1.046, allocations: 5.129 MB / 0.5346 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.461e-05/1.046, allocations: 13.64 kB / 0.5346 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002881/1.046, allocations: 43.78 kB / 0.5347 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001595/1.048, allocations: 231.9 kB / 0.5349 GB, free: 101.3 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001054/1.049, allocations: 1.288 MB / 0.5361 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001276/1.05, allocations: 56.06 kB / 0.5362 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.489e-05/1.05, allocations: 46.06 kB / 0.5362 GB, free: 100 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.177e-06/1.05, allocations: 2.938 kB / 0.5362 GB, free: 100 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001976/1.052, allocations: 0.7994 MB / 0.537 GB, free: 99.99 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.233e-05/1.052, allocations: 12.53 kB / 0.537 GB, free: 99.99 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001368/1.052, allocations: 39.8 kB / 0.5371 GB, free: 99.98 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/1.054, allocations: 222.5 kB / 0.5373 GB, free: 99.98 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008988/1.055, allocations: 1.288 MB / 0.5385 GB, free: 98.74 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000595/1.055, allocations: 43.41 kB / 0.5386 GB, free: 98.74 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.491e-05/1.055, allocations: 44.86 kB / 0.5386 GB, free: 98.74 MB / 410.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 () * 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.0002594/1.056, allocations: 169.2 kB / 0.5388 GB, free: 98.63 MB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003558/1.056, allocations: 117.8 kB / 0.5389 GB, free: 98.63 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001378/1.057, allocations: 0.5098 MB / 0.5394 GB, free: 98.56 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.027e-06/1.058, allocations: 8.656 kB / 0.5394 GB, free: 98.56 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.039e-06/1.058, allocations: 0 / 0.5394 GB, free: 98.56 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.083e-05/1.058, allocations: 5.297 kB / 0.5394 GB, free: 98.56 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00385/1.061, allocations: 1.778 MB / 0.5411 GB, free: 98.19 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.955e-06/1.061, allocations: 4.422 kB / 0.5412 GB, free: 98.19 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000994/1.062, allocations: 110.8 kB / 0.5413 GB, free: 98.19 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001356/1.063, allocations: 26.28 kB / 0.5413 GB, free: 98.18 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.062e-05/1.063, allocations: 14.69 kB / 0.5413 GB, free: 98.18 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0008898/1.064, allocations: 1.279 MB / 0.5425 GB, free: 96.93 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.392e-06/1.064, allocations: 5.344 kB / 0.5426 GB, free: 96.93 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0018/1.065, allocations: 0.9257 MB / 0.5435 GB, free: 96.61 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0005015/1.066, allocations: 242.7 kB / 0.5437 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001963/1.066, allocations: 15.67 kB / 0.5437 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0008794/1.067, allocations: 38.3 kB / 0.5437 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001151/1.067, allocations: 40.02 kB / 0.5438 GB, free: 96.51 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.764e-05/1.067, allocations: 17.23 kB / 0.5438 GB, free: 96.51 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.001509/1.069, allocations: 0.7095 MB / 0.5445 GB, free: 96.39 MB / 410.7 MB Notification: Performance of sort global known variables: time 1.643e-06/1.069, allocations: 0 / 0.5445 GB, free: 96.39 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.002365/1.071, allocations: 0.504 MB / 0.545 GB, free: 96.39 MB / 410.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 () * 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.0007426/1.072, allocations: 381.3 kB / 0.5453 GB, free: 96.28 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.002712/1.075, allocations: 1.178 MB / 0.5465 GB, free: 96.05 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 6.733e-06/1.075, allocations: 4.375 kB / 0.5465 GB, free: 96.05 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006072/1.075, allocations: 322 kB / 0.5468 GB, free: 95.95 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00191/1.077, allocations: 263.4 kB / 0.5471 GB, free: 95.93 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005099/1.082, allocations: 1.897 MB / 0.5489 GB, free: 95.21 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001013/1.083, allocations: 1.202 MB / 0.5501 GB, free: 94.48 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004738/1.084, allocations: 79.89 kB / 0.5502 GB, free: 94.48 MB / 410.7 MB Notification: Performance of SimCode: time 8.92e-07/1.084, allocations: 0 / 0.5502 GB, free: 94.48 MB / 410.7 MB Notification: Performance of Templates: time 0.03993/1.124, allocations: 23.2 MB / 0.5728 GB, free: 93.19 MB / 410.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