Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/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_trunk_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_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001003/0.001003, allocations: 201.2 kB / 18.11 MB, free: 3.738 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.441/1.441, allocations: 226.5 MB / 245.4 MB, free: 6.516 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007806/0.0007807, allocations: 94.92 kB / 297.5 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002585/0.0002586, allocations: 4 kB / 358.1 MB, free: 10.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.234, allocations: 51.28 MB / 409.4 MB, free: 27.63 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3219/0.556, allocations: 118.1 MB / 0.5152 GB, free: 98.75 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002096/0.5563, allocations: 88.17 kB / 0.5152 GB, free: 98.73 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08272/0.639, allocations: 39.53 MB / 0.5538 GB, free: 59.72 MB / 378.7 MB Notification: Performance of FrontEnd: time 2.735e-06/0.6391, allocations: 3.938 kB / 0.5538 GB, free: 59.72 MB / 378.7 MB Notification: Performance of Transformations before backend: time 0.0001682/0.6392, allocations: 40 kB / 0.5539 GB, free: 59.68 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.004201/0.6434, allocations: 1.724 MB / 0.5556 GB, free: 57.9 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.188e-05/0.6435, allocations: 8.031 kB / 0.5556 GB, free: 57.89 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000937/0.6444, allocations: 250.5 kB / 0.5558 GB, free: 57.64 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002333/0.6468, allocations: 1.106 MB / 0.5569 GB, free: 56.49 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.992e-05/0.6469, allocations: 111.4 kB / 0.557 GB, free: 56.38 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003324/0.6473, allocations: 160.2 kB / 0.5572 GB, free: 56.23 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.002849/0.6501, allocations: 1.428 MB / 0.5585 GB, free: 54.74 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.182e-05/0.6502, allocations: 15.92 kB / 0.5586 GB, free: 54.73 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001342/0.6503, allocations: 60 kB / 0.5586 GB, free: 54.67 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.719e-05/0.6504, allocations: 36 kB / 0.5587 GB, free: 54.63 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001889/0.6523, allocations: 0.9751 MB / 0.5596 GB, free: 53.65 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00758/0.6599, allocations: 6.221 MB / 0.5657 GB, free: 47.12 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009924/0.6609, allocations: 0.6699 MB / 0.5663 GB, free: 46.4 MB / 378.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003915/0.6613, allocations: 242 kB / 0.5666 GB, free: 46.16 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.092e-05/0.6614, allocations: 12.42 kB / 0.5666 GB, free: 46.15 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.045e-05/0.6614, allocations: 43 kB / 0.5666 GB, free: 46.1 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 3.246e-06/0.6614, allocations: 0 / 0.5666 GB, free: 46.1 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.002939/0.6643, allocations: 1.758 MB / 0.5683 GB, free: 44.27 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.592e-05/0.6644, allocations: 89.53 kB / 0.5684 GB, free: 44.16 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001494/0.6659, allocations: 1.072 MB / 0.5695 GB, free: 43.08 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 4.37e-05/0.666, allocations: 37.7 kB / 0.5695 GB, free: 43.04 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003823/0.6663, allocations: 0.8092 MB / 0.5703 GB, free: 42.21 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001166/0.6665, allocations: 197.2 kB / 0.5705 GB, free: 42.02 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.118e-05/0.6665, allocations: 20 kB / 0.5705 GB, free: 42 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 6.62e-05/0.6666, allocations: 349.9 kB / 0.5708 GB, free: 41.65 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004092/0.667, allocations: 241.9 kB / 0.5711 GB, free: 41.42 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005255/0.6675, allocations: 0.6368 MB / 0.5717 GB, free: 40.6 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009642/0.6685, allocations: 0.9263 MB / 0.5726 GB, free: 39.5 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.603e-06/0.6685, allocations: 4 kB / 0.5726 GB, free: 39.49 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.001562/0.6701, allocations: 1.014 MB / 0.5736 GB, free: 38.46 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.000195/0.6703, allocations: 491.2 kB / 0.5741 GB, free: 37.81 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.517e-05/0.6703, allocations: 12 kB / 0.5741 GB, free: 37.8 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001616/0.6705, allocations: 36.86 kB / 0.5741 GB, free: 37.76 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006644/0.6712, allocations: 231.6 kB / 0.5743 GB, free: 37.53 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007635/0.6719, allocations: 1.299 MB / 0.5756 GB, free: 36.09 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008338/0.6728, allocations: 59.98 kB / 0.5756 GB, free: 36.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.132e-05/0.6729, allocations: 47.98 kB / 0.5757 GB, free: 35.99 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 7.163e-06/0.6729, allocations: 4 kB / 0.5757 GB, free: 35.98 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.001127/0.674, allocations: 0.8187 MB / 0.5765 GB, free: 35.16 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.153e-05/0.674, allocations: 12 kB / 0.5765 GB, free: 35.15 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 9e-05/0.6741, allocations: 36.86 kB / 0.5765 GB, free: 35.11 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006018/0.6747, allocations: 219.6 kB / 0.5768 GB, free: 34.9 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006349/0.6754, allocations: 1.297 MB / 0.578 GB, free: 33.47 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007675/0.6762, allocations: 39.98 kB / 0.5781 GB, free: 33.43 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.532e-05/0.6762, allocations: 48 kB / 0.5781 GB, free: 33.39 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.0006611/0.6769, allocations: 410.9 kB / 0.5785 GB, free: 32.98 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002204/0.6771, allocations: 122.4 kB / 0.5786 GB, free: 32.86 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001052/0.6782, allocations: 0.5787 MB / 0.5792 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.64e-06/0.6782, allocations: 8 kB / 0.5792 GB, free: 32.25 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.396e-06/0.6782, allocations: 4 kB / 0.5792 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.432e-06/0.6782, allocations: 3.984 kB / 0.5792 GB, free: 32.24 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002685/0.6809, allocations: 1.847 MB / 0.581 GB, free: 30.31 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.741e-06/0.6809, allocations: 8.016 kB / 0.581 GB, free: 30.3 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004815/0.6814, allocations: 107.8 kB / 0.5811 GB, free: 30.2 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.793e-05/0.6815, allocations: 32.78 kB / 0.5811 GB, free: 30.16 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.667e-05/0.6816, allocations: 16 kB / 0.5812 GB, free: 30.15 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005923/0.6822, allocations: 1.272 MB / 0.5824 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.504e-06/0.6822, allocations: 3.984 kB / 0.5824 GB, free: 28.74 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001244/0.6834, allocations: 0.9383 MB / 0.5833 GB, free: 27.76 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004044/0.6838, allocations: 243.6 kB / 0.5835 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001906/0.6841, allocations: 12 kB / 0.5836 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005214/0.6846, allocations: 39.97 kB / 0.5836 GB, free: 27.45 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.297e-05/0.6847, allocations: 40.33 kB / 0.5836 GB, free: 27.41 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.471e-05/0.6847, allocations: 12 kB / 0.5836 GB, free: 27.4 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.000969/0.6857, allocations: 0.7204 MB / 0.5843 GB, free: 26.67 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.6857, allocations: 3.938 kB / 0.5844 GB, free: 26.67 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001774/0.6875, allocations: 0.5 MB / 0.5848 GB, free: 26.17 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.0005191/0.688, allocations: 403.8 kB / 0.5852 GB, free: 25.77 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001921/0.6899, allocations: 1.273 MB / 0.5865 GB, free: 24.48 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 5.27e-06/0.6899, allocations: 0 / 0.5865 GB, free: 24.48 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004394/0.6904, allocations: 357.7 kB / 0.5868 GB, free: 24.11 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001551/0.6919, allocations: 265.1 kB / 0.5871 GB, free: 23.86 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004215/0.6962, allocations: 3.079 MB / 0.5901 GB, free: 20.73 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000676/0.6969, allocations: 1.173 MB / 0.5912 GB, free: 19.52 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0007861/0.6977, allocations: 157.2 kB / 0.5914 GB, free: 19.37 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001765/0.6978, allocations: 79.42 kB / 0.5914 GB, free: 19.29 MB / 378.7 MB Notification: Performance of SimCode: time 6.91e-07/0.6979, allocations: 0 / 0.5914 GB, free: 19.29 MB / 378.7 MB Notification: Performance of Templates: time 0.02382/0.7217, allocations: 15.11 MB / 0.6062 GB, free: 4.277 MB / 378.7 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.makefile (rm -f Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.sim & ./Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Machines/Examples/ControlledDCDrives/CurrentControlledDCPM/CurrentControlledDCPM.csv","../files/Modelica_trunk_Modelica.Electrical.Machines.Examples.ControlledDCDrives.CurrentControlledDCPM.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches