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.001855/0.001855, allocations: 178.3 kB / 17.41 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 2.901/2.901, allocations: 205.4 MB / 223.6 MB, free: 9.031 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.0009284/0.0009284, allocations: 77.44 kB / 271.9 MB, free: 8.266 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000588/0.0005883, allocations: 8 kB / 328.2 MB, free: 15.94 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.5176/0.5182, allocations: 47.57 MB / 375.7 MB, free: 45.41 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2358/0.7541, allocations: 115.7 MB / 491.4 MB, free: 12.88 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004194/0.7546, allocations: 91.95 kB / 491.5 MB, free: 12.79 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.5716/1.326, allocations: 39.33 MB / 0.5184 GB, free: 97.91 MB / 378.7 MB Notification: Performance of FrontEnd: time 4.338e-06/1.326, allocations: 0 / 0.5184 GB, free: 97.91 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.000163/1.327, allocations: 38 kB / 0.5184 GB, free: 97.91 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.005947/1.332, allocations: 1.724 MB / 0.5201 GB, free: 96.65 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.391e-05/1.333, allocations: 11.75 kB / 0.5201 GB, free: 96.64 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.00164/1.334, allocations: 249.6 kB / 0.5204 GB, free: 96.53 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00377/1.338, allocations: 1.115 MB / 0.5215 GB, free: 95.66 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001341/1.338, allocations: 109.4 kB / 0.5216 GB, free: 95.61 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0004814/1.339, allocations: 154.1 kB / 0.5217 GB, free: 95.56 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.004213/1.343, allocations: 1.433 MB / 0.5231 GB, free: 94.19 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.354e-05/1.343, allocations: 7.844 kB / 0.5231 GB, free: 94.18 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001805/1.343, allocations: 68 kB / 0.5232 GB, free: 94.12 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.78e-05/1.343, allocations: 36 kB / 0.5232 GB, free: 94.08 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002794/1.346, allocations: 0.9673 MB / 0.5242 GB, free: 93.11 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.01311/1.359, allocations: 6.222 MB / 0.5302 GB, free: 86.62 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.00173/1.361, allocations: 0.6816 MB / 0.5309 GB, free: 85.9 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006211/1.362, allocations: 254.7 kB / 0.5311 GB, free: 85.65 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.197e-05/1.362, allocations: 4.438 kB / 0.5312 GB, free: 85.64 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.664e-05/1.362, allocations: 39 kB / 0.5312 GB, free: 85.6 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 5.12e-06/1.362, allocations: 0 / 0.5312 GB, free: 85.6 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.005304/1.367, allocations: 1.746 MB / 0.5329 GB, free: 83.77 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.434e-05/1.367, allocations: 85.55 kB / 0.533 GB, free: 83.67 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.003379/1.371, allocations: 1.085 MB / 0.534 GB, free: 82.57 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001452/1.371, allocations: 37.7 kB / 0.5341 GB, free: 82.53 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0008437/1.372, allocations: 0.8136 MB / 0.5349 GB, free: 81.71 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003333/1.372, allocations: 200.8 kB / 0.5351 GB, free: 81.52 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001055/1.372, allocations: 20 kB / 0.5351 GB, free: 81.5 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 0.0001493/1.372, allocations: 345.9 kB / 0.5354 GB, free: 81.15 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007756/1.373, allocations: 245.9 kB / 0.5356 GB, free: 80.91 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000989/1.374, allocations: 0.629 MB / 0.5363 GB, free: 80.1 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001721/1.376, allocations: 0.9265 MB / 0.5372 GB, free: 78.99 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.431e-05/1.376, allocations: 7.938 kB / 0.5372 GB, free: 78.98 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.002934/1.379, allocations: 1.018 MB / 0.5382 GB, free: 77.96 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0004648/1.379, allocations: 477.3 kB / 0.5386 GB, free: 77.3 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.844e-05/1.38, allocations: 12 kB / 0.5386 GB, free: 77.29 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0003169/1.38, allocations: 44.84 kB / 0.5387 GB, free: 77.25 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001179/1.381, allocations: 227.6 kB / 0.5389 GB, free: 77.02 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001391/1.382, allocations: 1.295 MB / 0.5402 GB, free: 75.6 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001849/1.384, allocations: 55.89 kB / 0.5402 GB, free: 75.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001467/1.385, allocations: 44.12 kB / 0.5402 GB, free: 75.5 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.712e-05/1.385, allocations: 8 kB / 0.5403 GB, free: 75.49 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.002103/1.387, allocations: 0.8144 MB / 0.5411 GB, free: 74.68 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.813e-05/1.387, allocations: 12 kB / 0.5411 GB, free: 74.66 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001746/1.387, allocations: 41.53 kB / 0.5411 GB, free: 74.62 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001057/1.388, allocations: 223.6 kB / 0.5413 GB, free: 74.4 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001307/1.389, allocations: 1.311 MB / 0.5426 GB, free: 72.96 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001483/1.391, allocations: 36 kB / 0.5426 GB, free: 72.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001368/1.391, allocations: 44 kB / 0.5427 GB, free: 72.88 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.001396/1.392, allocations: 413.6 kB / 0.5431 GB, free: 72.46 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005565/1.393, allocations: 122.4 kB / 0.5432 GB, free: 72.34 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002142/1.395, allocations: 0.5869 MB / 0.5438 GB, free: 71.75 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.458e-05/1.395, allocations: 8 kB / 0.5438 GB, free: 71.74 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.076e-06/1.395, allocations: 0 / 0.5438 GB, free: 71.74 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.331e-05/1.395, allocations: 3.984 kB / 0.5438 GB, free: 71.73 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005969/1.401, allocations: 1.842 MB / 0.5456 GB, free: 69.82 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.122e-05/1.401, allocations: 0 / 0.5456 GB, free: 69.82 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006637/1.402, allocations: 115.8 kB / 0.5457 GB, free: 69.71 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0001606/1.402, allocations: 29.06 kB / 0.5457 GB, free: 69.68 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.61e-05/1.402, allocations: 12 kB / 0.5457 GB, free: 69.66 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.001108/1.403, allocations: 1.276 MB / 0.547 GB, free: 68.25 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.944e-06/1.403, allocations: 3.938 kB / 0.547 GB, free: 68.25 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002252/1.406, allocations: 0.9449 MB / 0.5479 GB, free: 67.26 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0008612/1.406, allocations: 231.6 kB / 0.5481 GB, free: 67.02 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0004505/1.407, allocations: 23.98 kB / 0.5481 GB, free: 66.99 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0009632/1.408, allocations: 31.98 kB / 0.5482 GB, free: 66.96 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001243/1.408, allocations: 40.33 kB / 0.5482 GB, free: 66.92 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.668e-05/1.408, allocations: 23.98 kB / 0.5482 GB, free: 66.9 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.002076/1.41, allocations: 0.7166 MB / 0.5489 GB, free: 66.18 MB / 378.7 MB Notification: Performance of sort global known variables: time 2.3e-07/1.41, allocations: 0 / 0.5489 GB, free: 66.18 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.003884/1.414, allocations: 0.5116 MB / 0.5494 GB, free: 65.66 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.001115/1.415, allocations: 386.1 kB / 0.5498 GB, free: 65.3 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.00393/1.419, allocations: 1.262 MB / 0.551 GB, free: 64.03 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.417e-05/1.419, allocations: 4.062 kB / 0.551 GB, free: 64.03 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009488/1.42, allocations: 365.4 kB / 0.5514 GB, free: 63.66 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.004441/1.425, allocations: 261.2 kB / 0.5516 GB, free: 63.41 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009812/1.435, allocations: 3.144 MB / 0.5547 GB, free: 60.21 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001412/1.436, allocations: 1.169 MB / 0.5558 GB, free: 59.01 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005595/1.437, allocations: 83.42 kB / 0.5559 GB, free: 58.93 MB / 378.7 MB Notification: Performance of SimCode: time 2.284e-06/1.437, allocations: 0 / 0.5559 GB, free: 58.93 MB / 378.7 MB Notification: Performance of Templates: time 0.05004/1.487, allocations: 23.93 MB / 0.5793 GB, free: 34.97 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