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.001261/0.001261, allocations: 180 kB / 17.01 MB, free: 5.125 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.511/1.511, allocations: 205.4 MB / 223.1 MB, free: 9.117 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.0009645/0.0009646, allocations: 96.05 kB / 271.5 MB, free: 8.359 MB / 218.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003331/0.0003331, allocations: 11.98 kB / 328.3 MB, free: 15.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3183/0.3186, allocations: 47.56 MB / 375.8 MB, free: 45.62 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1508/0.4695, allocations: 115.4 MB / 491.2 MB, free: 13.19 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0004182/0.47, allocations: 95.88 kB / 491.3 MB, free: 13.1 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.3245/0.7945, allocations: 39.48 MB / 0.5184 GB, free: 98.02 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.914e-06/0.7945, allocations: 0 / 0.5184 GB, free: 98.02 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.662e-05/0.7946, allocations: 40.36 kB / 0.5184 GB, free: 98.02 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.002819/0.7974, allocations: 1.738 MB / 0.5201 GB, free: 96.76 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.076e-05/0.7975, allocations: 9.25 kB / 0.5201 GB, free: 96.76 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006603/0.7982, allocations: 241.1 kB / 0.5203 GB, free: 96.65 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00163/0.7998, allocations: 1.087 MB / 0.5214 GB, free: 95.82 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.53e-05/0.7999, allocations: 113.3 kB / 0.5215 GB, free: 95.77 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001791/0.8001, allocations: 150.3 kB / 0.5216 GB, free: 95.71 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002251/0.8023, allocations: 1.418 MB / 0.523 GB, free: 94.41 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.771e-05/0.8024, allocations: 0 / 0.523 GB, free: 94.41 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.8025, allocations: 64 kB / 0.5231 GB, free: 94.35 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.592e-05/0.8025, allocations: 36 kB / 0.5231 GB, free: 94.32 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001555/0.8041, allocations: 0.979 MB / 0.5241 GB, free: 93.33 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006532/0.8106, allocations: 6.215 MB / 0.5301 GB, free: 86.85 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001062/0.8117, allocations: 0.6793 MB / 0.5308 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.144e-05/0.8118, allocations: 4.438 kB / 0.5308 GB, free: 86.12 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.8118, allocations: 39 kB / 0.5309 GB, free: 86.07 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 2.234e-06/0.8118, allocations: 0 / 0.5309 GB, free: 86.07 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.0027/0.8145, allocations: 1.754 MB / 0.5326 GB, free: 84.24 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.171e-05/0.8146, allocations: 85.55 kB / 0.5326 GB, free: 84.14 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001099/0.8157, allocations: 0.9537 MB / 0.5336 GB, free: 83.18 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.645e-05/0.8157, allocations: 37.7 kB / 0.5336 GB, free: 83.13 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0004202/0.8162, allocations: 0.8114 MB / 0.5344 GB, free: 82.32 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001235/0.8163, allocations: 197 kB / 0.5346 GB, free: 82.12 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.122e-05/0.8163, allocations: 24 kB / 0.5346 GB, free: 82.1 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.958e-05/0.8164, allocations: 345.9 kB / 0.5349 GB, free: 81.76 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003861/0.8168, allocations: 245.9 kB / 0.5352 GB, free: 81.52 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005398/0.8174, allocations: 0.6329 MB / 0.5358 GB, free: 80.7 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004904/0.8179, allocations: 342 kB / 0.5361 GB, free: 80.37 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.789e-06/0.8179, allocations: 4 kB / 0.5361 GB, free: 80.36 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001393/0.8193, allocations: 1.022 MB / 0.5371 GB, free: 79.33 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.001134/0.8204, allocations: 5.14 MB / 0.5421 GB, free: 73.79 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.794e-05/0.8204, allocations: 16 kB / 0.5422 GB, free: 73.78 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001858/0.8206, allocations: 32.86 kB / 0.5422 GB, free: 73.74 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006902/0.8213, allocations: 235.6 kB / 0.5424 GB, free: 73.51 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008297/0.8222, allocations: 1.295 MB / 0.5437 GB, free: 72.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000786/0.823, allocations: 71.97 kB / 0.5438 GB, free: 72.02 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.461e-05/0.823, allocations: 44 kB / 0.5438 GB, free: 71.97 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 9.928e-06/0.8231, allocations: 7.984 kB / 0.5438 GB, free: 71.96 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001067/0.8241, allocations: 0.811 MB / 0.5446 GB, free: 71.15 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.046e-05/0.8241, allocations: 16 kB / 0.5446 GB, free: 71.13 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 8.27e-05/0.8242, allocations: 44.78 kB / 0.5446 GB, free: 71.09 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005972/0.8248, allocations: 215.7 kB / 0.5449 GB, free: 70.88 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006536/0.8255, allocations: 1.304 MB / 0.5461 GB, free: 69.44 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006806/0.8262, allocations: 43.89 kB / 0.5462 GB, free: 69.39 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.885e-05/0.8263, allocations: 44 kB / 0.5462 GB, free: 69.35 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.0008226/0.8271, allocations: 420.9 kB / 0.5466 GB, free: 68.93 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001444/0.8272, allocations: 114.6 kB / 0.5467 GB, free: 68.82 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0009399/0.8282, allocations: 0.5713 MB / 0.5473 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.501e-06/0.8282, allocations: 8 kB / 0.5473 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.634e-06/0.8282, allocations: 0 / 0.5473 GB, free: 68.23 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.312e-06/0.8282, allocations: 3.984 kB / 0.5473 GB, free: 68.22 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0024/0.8306, allocations: 1.856 MB / 0.5491 GB, free: 66.29 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.947e-06/0.8306, allocations: 224 / 0.5491 GB, free: 66.29 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004741/0.8311, allocations: 115.8 kB / 0.5492 GB, free: 66.18 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.754e-05/0.8312, allocations: 24.84 kB / 0.5492 GB, free: 66.15 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.502e-05/0.8313, allocations: 12 kB / 0.5493 GB, free: 66.14 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006738/0.832, allocations: 1.284 MB / 0.5505 GB, free: 64.73 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.983e-06/0.832, allocations: 4.031 kB / 0.5505 GB, free: 64.72 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001294/0.8333, allocations: 1.029 MB / 0.5515 GB, free: 63.62 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003673/0.8337, allocations: 243.6 kB / 0.5517 GB, free: 63.36 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001081/0.8338, allocations: 16 kB / 0.5518 GB, free: 63.34 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005148/0.8343, allocations: 35.97 kB / 0.5518 GB, free: 63.31 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.063e-05/0.8344, allocations: 44.38 kB / 0.5518 GB, free: 63.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.834e-05/0.8344, allocations: 20 kB / 0.5519 GB, free: 63.25 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0009152/0.8353, allocations: 0.7166 MB / 0.5526 GB, free: 62.52 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.8353, allocations: 0 / 0.5526 GB, free: 62.52 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.002118/0.8375, allocations: 0.5078 MB / 0.5531 GB, free: 62.02 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.0006102/0.8381, allocations: 388 kB / 0.5534 GB, free: 61.67 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001988/0.8401, allocations: 1.269 MB / 0.5547 GB, free: 60.38 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 3.306e-06/0.8401, allocations: 0 / 0.5547 GB, free: 60.38 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004292/0.8405, allocations: 357.7 kB / 0.555 GB, free: 60.02 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001049/0.8416, allocations: 258.5 kB / 0.5552 GB, free: 59.77 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004192/0.8458, allocations: 3.097 MB / 0.5583 GB, free: 56.62 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006011/0.8464, allocations: 1.2 MB / 0.5594 GB, free: 55.39 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007309/0.8472, allocations: 157.2 kB / 0.5596 GB, free: 55.23 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001736/0.8474, allocations: 75.44 kB / 0.5597 GB, free: 55.16 MB / 378.7 MB Notification: Performance of SimCode: time 1.423e-06/0.8474, allocations: 0 / 0.5597 GB, free: 55.16 MB / 378.7 MB Notification: Performance of Templates: time 0.02678/0.8742, allocations: 14.9 MB / 0.5742 GB, free: 40.29 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/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