Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_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_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_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.001256/0.001256, allocations: 179.1 kB / 8.697 MB, free: 388 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.466/1.466, allocations: 205.3 MB / 214.4 MB, free: 1.672 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.000774/0.0007739, allocations: 86.72 kB / 262.4 MB, free: 1.613 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 1.507e-05/1.509e-05, allocations: 4 kB / 315.5 MB, free: 22.69 MB / 234.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07258/0.07261, allocations: 47.58 MB / 363.1 MB, free: 7.047 MB / 266.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3118/0.3845, allocations: 114.9 MB / 478 MB, free: 13.18 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001865/0.3847, allocations: 88.64 kB / 478 MB, free: 13.14 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.09499/0.4797, allocations: 38.69 MB / 0.5046 GB, free: 11.81 MB / 394.7 MB Notification: Performance of FrontEnd: time 1.332e-06/0.4797, allocations: 4 kB / 0.5046 GB, free: 11.81 MB / 394.7 MB Notification: Performance of Transformations before backend: time 0.0001251/0.4799, allocations: 36 kB / 0.5047 GB, free: 11.77 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.00328/0.4832, allocations: 1.522 MB / 0.5061 GB, free: 10.2 MB / 394.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.505e-05/0.4832, allocations: 8.031 kB / 0.5062 GB, free: 10.19 MB / 394.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.001067/0.4843, allocations: 245.6 kB / 0.5064 GB, free: 9.949 MB / 394.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002262/0.4866, allocations: 1.063 MB / 0.5074 GB, free: 8.84 MB / 394.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 4.555e-05/0.4866, allocations: 48 kB / 0.5075 GB, free: 8.793 MB / 394.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001691/0.4868, allocations: 95.91 kB / 0.5076 GB, free: 8.699 MB / 394.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.001526/0.4883, allocations: 0.7948 MB / 0.5083 GB, free: 7.902 MB / 394.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001945/0.4903, allocations: 1.152 MB / 0.5095 GB, free: 6.695 MB / 394.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.187e-05/0.4903, allocations: 3.906 kB / 0.5095 GB, free: 6.691 MB / 394.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 8.785e-05/0.4904, allocations: 7.938 kB / 0.5095 GB, free: 6.684 MB / 394.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.698e-05/0.4905, allocations: 36 kB / 0.5095 GB, free: 6.648 MB / 394.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007538/0.498, allocations: 5.943 MB / 0.5153 GB, free: 424 kB / 394.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009326/0.499, allocations: 0.6088 MB / 0.5159 GB, free: 15.76 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002716/0.4993, allocations: 202 kB / 0.5161 GB, free: 15.56 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.148e-05/0.4993, allocations: 8.5 kB / 0.5161 GB, free: 15.55 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.408e-05/0.4994, allocations: 39 kB / 0.5161 GB, free: 15.5 MB / 410.7 MB Notification: Performance of pre-optimization done (n=51): time 2.434e-06/0.4994, allocations: 0 / 0.5161 GB, free: 15.5 MB / 410.7 MB Notification: Performance of matching and sorting (n=54): time 0.001992/0.5014, allocations: 1.265 MB / 0.5174 GB, free: 14.18 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.058e-05/0.5014, allocations: 93.42 kB / 0.5175 GB, free: 14.07 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001074/0.5025, allocations: 0.8129 MB / 0.5183 GB, free: 13.24 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 3.424e-05/0.5025, allocations: 25.7 kB / 0.5183 GB, free: 13.21 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004783/0.503, allocations: 0.8128 MB / 0.5191 GB, free: 12.38 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001299/0.5032, allocations: 197.2 kB / 0.5193 GB, free: 12.19 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.756e-05/0.5032, allocations: 0 / 0.5193 GB, free: 12.19 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 0.0001096/0.5033, allocations: 341.9 kB / 0.5196 GB, free: 11.85 MB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002974/0.5036, allocations: 182.6 kB / 0.5198 GB, free: 11.67 MB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005021/0.5041, allocations: 0.575 MB / 0.5203 GB, free: 10.91 MB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000431/0.5046, allocations: 293.9 kB / 0.5206 GB, free: 10.62 MB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.883e-06/0.5046, allocations: 4 kB / 0.5206 GB, free: 10.62 MB / 410.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001222/0.5058, allocations: 0.8151 MB / 0.5214 GB, free: 9.793 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001503/0.5073, allocations: 5.134 MB / 0.5264 GB, free: 4.254 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.813e-05/0.5073, allocations: 12 kB / 0.5264 GB, free: 4.242 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001663/0.5075, allocations: 40.89 kB / 0.5265 GB, free: 4.199 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007973/0.5083, allocations: 239.6 kB / 0.5267 GB, free: 3.965 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008443/0.5092, allocations: 1.244 MB / 0.5279 GB, free: 2.609 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008194/0.51, allocations: 27.98 kB / 0.528 GB, free: 2.582 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.266e-05/0.5101, allocations: 48 kB / 0.528 GB, free: 2.535 MB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.425e-06/0.5101, allocations: 4 kB / 0.528 GB, free: 2.531 MB / 410.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001049/0.5112, allocations: 0.6666 MB / 0.5287 GB, free: 1.863 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.334e-05/0.5112, allocations: 12 kB / 0.5287 GB, free: 1.852 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.876e-05/0.5113, allocations: 36.86 kB / 0.5287 GB, free: 1.812 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006629/0.512, allocations: 219.7 kB / 0.5289 GB, free: 1.598 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007335/0.5127, allocations: 1.249 MB / 0.5301 GB, free: 236 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006736/0.5134, allocations: 15.98 kB / 0.5301 GB, free: 220 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.727e-05/0.5135, allocations: 48 kB / 0.5302 GB, free: 172 kB / 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.0001584/0.5136, allocations: 149 kB / 0.5303 GB, free: 16 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.1879/0.7015, allocations: 107.3 kB / 0.5304 GB, free: 108.5 MB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001082/0.7026, allocations: 464.4 kB / 0.5309 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.166e-06/0.7027, allocations: 5.156 kB / 0.5309 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.047e-06/0.7027, allocations: 1.156 kB / 0.5309 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.165e-06/0.7027, allocations: 2.531 kB / 0.5309 GB, free: 108.4 MB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002231/0.7049, allocations: 1.563 MB / 0.5324 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.699e-06/0.7049, allocations: 1.828 kB / 0.5324 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005235/0.7055, allocations: 110.2 kB / 0.5325 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.806e-05/0.7056, allocations: 25.31 kB / 0.5325 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.234e-05/0.7056, allocations: 11.16 kB / 0.5326 GB, free: 108.1 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006564/0.7063, allocations: 1.222 MB / 0.5337 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.505e-06/0.7063, allocations: 9.703 kB / 0.5338 GB, free: 106.9 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001004/0.7073, allocations: 0.8734 MB / 0.5346 GB, free: 106.6 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003319/0.7077, allocations: 232.3 kB / 0.5348 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001214/0.7078, allocations: 4.281 kB / 0.5348 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004825/0.7083, allocations: 34.45 kB / 0.5349 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.618e-05/0.7084, allocations: 34.84 kB / 0.5349 GB, free: 106.5 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.102e-05/0.7084, allocations: 20.88 kB / 0.5349 GB, free: 106.5 MB / 410.7 MB Notification: Performance of sorting global known variables: time 0.0008186/0.7092, allocations: 0.595 MB / 0.5355 GB, free: 106.4 MB / 410.7 MB Notification: Performance of sort global known variables: time 3.41e-07/0.7092, allocations: 0 / 0.5355 GB, free: 106.4 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.001544/0.7108, allocations: 430.1 kB / 0.5359 GB, free: 106.4 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.0004762/0.7113, allocations: 356.8 kB / 0.5363 GB, free: 106.3 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.00163/0.7129, allocations: 1.116 MB / 0.5373 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 3.997e-06/0.7129, allocations: 1.25 kB / 0.5373 GB, free: 106.1 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003623/0.7133, allocations: 305.3 kB / 0.5376 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001093/0.7144, allocations: 237.5 kB / 0.5379 GB, free: 106 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003289/0.7177, allocations: 1.822 MB / 0.5396 GB, free: 105.3 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001071/0.7188, allocations: 1.203 MB / 0.5408 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 0.00112/0.7199, allocations: 194.2 kB / 0.541 GB, free: 104.6 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001379/0.7201, allocations: 57.45 kB / 0.5411 GB, free: 104.6 MB / 410.7 MB Notification: Performance of SimCode: time 1.262e-06/0.7201, allocations: 0 / 0.5411 GB, free: 104.6 MB / 410.7 MB Notification: Performance of Templates: time 0.02358/0.7437, allocations: 12.82 MB / 0.5536 GB, free: 103.7 MB / 410.7 MB make -j1 -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches