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.000912/0.0009119, allocations: 183.8 kB / 18.04 MB, free: 3.777 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.235/1.235, allocations: 205.4 MB / 224.2 MB, free: 9.02 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.0007028/0.0007028, allocations: 89 kB / 272.5 MB, free: 8.25 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003301/0.0003301, allocations: 8 kB / 329.5 MB, free: 15.26 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2008/0.2012, allocations: 47.58 MB / 377 MB, free: 45.64 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1185/0.3197, allocations: 115.7 MB / 492.7 MB, free: 12.78 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002581/0.32, allocations: 91.95 kB / 492.8 MB, free: 12.69 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.2434/0.5634, allocations: 39.34 MB / 0.5197 GB, free: 98.19 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.014e-06/0.5634, allocations: 0 / 0.5197 GB, free: 98.19 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001118/0.5636, allocations: 42.12 kB / 0.5197 GB, free: 98.18 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.003133/0.5667, allocations: 1.72 MB / 0.5214 GB, free: 96.92 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.44e-05/0.5668, allocations: 10.72 kB / 0.5214 GB, free: 96.92 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0007498/0.5675, allocations: 240.7 kB / 0.5216 GB, free: 96.81 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001891/0.5694, allocations: 1.119 MB / 0.5227 GB, free: 95.85 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.301e-05/0.5695, allocations: 115.3 kB / 0.5228 GB, free: 95.74 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000242/0.5698, allocations: 152.3 kB / 0.523 GB, free: 95.59 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002337/0.5721, allocations: 1.424 MB / 0.5244 GB, free: 94.11 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 5.295e-05/0.5722, allocations: 11.84 kB / 0.5244 GB, free: 94.1 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001073/0.5723, allocations: 60 kB / 0.5244 GB, free: 94.04 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.267e-05/0.5723, allocations: 43.98 kB / 0.5245 GB, free: 94 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001783/0.5741, allocations: 0.979 MB / 0.5254 GB, free: 93.01 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006797/0.5809, allocations: 6.213 MB / 0.5315 GB, free: 86.54 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009724/0.5819, allocations: 0.6782 MB / 0.5322 GB, free: 85.81 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003589/0.5823, allocations: 242.7 kB / 0.5324 GB, free: 85.57 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.415e-05/0.5823, allocations: 8.438 kB / 0.5324 GB, free: 85.57 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.429e-05/0.5824, allocations: 38.98 kB / 0.5325 GB, free: 85.52 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.485e-06/0.5824, allocations: 8 kB / 0.5325 GB, free: 85.51 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.002635/0.585, allocations: 1.742 MB / 0.5342 GB, free: 83.69 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.894e-05/0.5851, allocations: 89.53 kB / 0.5342 GB, free: 83.58 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001298/0.5864, allocations: 1.081 MB / 0.5353 GB, free: 82.49 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.566e-05/0.5864, allocations: 37.7 kB / 0.5353 GB, free: 82.45 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003403/0.5868, allocations: 0.8103 MB / 0.5361 GB, free: 81.63 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.982e-05/0.5869, allocations: 203.6 kB / 0.5363 GB, free: 81.43 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.927e-05/0.5869, allocations: 20 kB / 0.5363 GB, free: 81.41 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.615e-05/0.587, allocations: 341.9 kB / 0.5367 GB, free: 81.07 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004135/0.5874, allocations: 249.9 kB / 0.5369 GB, free: 80.83 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006091/0.588, allocations: 0.6329 MB / 0.5375 GB, free: 80.02 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00111/0.5891, allocations: 0.9304 MB / 0.5384 GB, free: 78.9 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.107e-05/0.5891, allocations: 4 kB / 0.5384 GB, free: 78.9 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001438/0.5906, allocations: 1.014 MB / 0.5394 GB, free: 77.87 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001555/0.5908, allocations: 485.5 kB / 0.5399 GB, free: 77.21 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.317e-05/0.5908, allocations: 12 kB / 0.5399 GB, free: 77.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.000134/0.5909, allocations: 36.84 kB / 0.5399 GB, free: 77.16 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006698/0.5916, allocations: 231.6 kB / 0.5402 GB, free: 76.94 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006541/0.5923, allocations: 1.303 MB / 0.5414 GB, free: 75.5 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006687/0.5929, allocations: 52.05 kB / 0.5415 GB, free: 75.45 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.298e-05/0.593, allocations: 48 kB / 0.5415 GB, free: 75.41 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.971e-06/0.593, allocations: 4 kB / 0.5415 GB, free: 75.4 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001094/0.5941, allocations: 0.8148 MB / 0.5423 GB, free: 74.58 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.48e-05/0.5941, allocations: 16.19 kB / 0.5423 GB, free: 74.57 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.943e-05/0.5942, allocations: 44.78 kB / 0.5424 GB, free: 74.52 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006126/0.5949, allocations: 219.6 kB / 0.5426 GB, free: 74.3 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005613/0.5954, allocations: 1.303 MB / 0.5439 GB, free: 72.87 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005975/0.596, allocations: 32 kB / 0.5439 GB, free: 72.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.222e-05/0.5961, allocations: 48 kB / 0.5439 GB, free: 72.79 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.0005741/0.5967, allocations: 409.6 kB / 0.5443 GB, free: 72.38 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001359/0.5968, allocations: 126.5 kB / 0.5445 GB, free: 72.25 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009926/0.5978, allocations: 0.5867 MB / 0.545 GB, free: 71.66 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.729e-06/0.5978, allocations: 4 kB / 0.545 GB, free: 71.65 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.427e-06/0.5979, allocations: 4 kB / 0.545 GB, free: 71.65 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.5979, allocations: 0 / 0.545 GB, free: 71.65 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002542/0.6004, allocations: 1.849 MB / 0.5468 GB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.6004, allocations: 4 kB / 0.5468 GB, free: 69.73 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004659/0.6009, allocations: 116 kB / 0.547 GB, free: 69.61 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.883e-05/0.601, allocations: 24.8 kB / 0.547 GB, free: 69.59 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.434e-05/0.601, allocations: 19.98 kB / 0.547 GB, free: 69.57 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005796/0.6016, allocations: 1.268 MB / 0.5482 GB, free: 68.16 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.976e-06/0.6016, allocations: 4.031 kB / 0.5482 GB, free: 68.16 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001218/0.6029, allocations: 0.9344 MB / 0.5492 GB, free: 67.18 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003371/0.6032, allocations: 243.6 kB / 0.5494 GB, free: 66.93 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001669/0.6034, allocations: 12 kB / 0.5494 GB, free: 66.91 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000526/0.6039, allocations: 35.97 kB / 0.5494 GB, free: 66.88 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.841e-05/0.604, allocations: 44.33 kB / 0.5495 GB, free: 66.84 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.7e-05/0.604, allocations: 16 kB / 0.5495 GB, free: 66.82 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000939/0.605, allocations: 0.7244 MB / 0.5502 GB, free: 66.09 MB / 378.7 MB Notification: Performance of sort global known variables: time 4.1e-07/0.605, allocations: 0 / 0.5502 GB, free: 66.09 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001731/0.6067, allocations: 0.5039 MB / 0.5507 GB, free: 65.59 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.0005524/0.6073, allocations: 408.5 kB / 0.5511 GB, free: 65.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001866/0.6092, allocations: 1.265 MB / 0.5523 GB, free: 63.93 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 4.328e-06/0.6092, allocations: 4 kB / 0.5523 GB, free: 63.93 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004546/0.6096, allocations: 358.5 kB / 0.5527 GB, free: 63.56 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001509/0.6112, allocations: 259.5 kB / 0.5529 GB, free: 63.32 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003805/0.615, allocations: 3.084 MB / 0.5559 GB, free: 60.18 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005909/0.6156, allocations: 1.177 MB / 0.5571 GB, free: 58.98 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007335/0.6163, allocations: 161.2 kB / 0.5572 GB, free: 58.82 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000171/0.6165, allocations: 75.44 kB / 0.5573 GB, free: 58.74 MB / 378.7 MB Notification: Performance of SimCode: time 4.3e-07/0.6165, allocations: 3.938 kB / 0.5573 GB, free: 58.74 MB / 378.7 MB Notification: Performance of Templates: time 0.02281/0.6393, allocations: 15.12 MB / 0.5721 GB, free: 43.63 MB / 378.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/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_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches