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.001031/0.001031, allocations: 198.9 kB / 17.08 MB, free: 5.078 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.179/1.179, allocations: 227.2 MB / 245 MB, free: 5.898 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008404/0.0008404, allocations: 104.4 kB / 297.3 MB, free: 5.977 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.000201/0.0002011, allocations: 8 kB / 357.9 MB, free: 9.316 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1987/0.199, allocations: 51.47 MB / 409.4 MB, free: 26.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2755/0.4745, allocations: 117.9 MB / 0.515 GB, free: 97.45 MB / 378.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002051/0.4748, allocations: 87.73 kB / 0.515 GB, free: 97.4 MB / 378.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.08056/0.5553, allocations: 39.42 MB / 0.5535 GB, free: 58.46 MB / 378.7 MB Notification: Performance of FrontEnd: time 1.643e-06/0.5554, allocations: 0 / 0.5535 GB, free: 58.46 MB / 378.7 MB Notification: Performance of Transformations before backend: time 8.439e-05/0.5555, allocations: 36 kB / 0.5536 GB, free: 58.43 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: 375 * Number of variables: 375 Notification: Performance of Generate backend data structure: time 0.002518/0.558, allocations: 1.731 MB / 0.5553 GB, free: 56.64 MB / 378.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.523e-05/0.558, allocations: 12.03 kB / 0.5553 GB, free: 56.62 MB / 378.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0005758/0.5586, allocations: 237.7 kB / 0.5555 GB, free: 56.39 MB / 378.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.001421/0.5601, allocations: 1.055 MB / 0.5565 GB, free: 55.29 MB / 378.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 5.496e-05/0.5601, allocations: 111 kB / 0.5566 GB, free: 55.18 MB / 378.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001476/0.5603, allocations: 155.8 kB / 0.5568 GB, free: 55.03 MB / 378.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001811/0.5621, allocations: 1.403 MB / 0.5581 GB, free: 53.57 MB / 378.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.475e-05/0.5621, allocations: 15.8 kB / 0.5582 GB, free: 53.55 MB / 378.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.506e-05/0.5622, allocations: 60 kB / 0.5582 GB, free: 53.5 MB / 378.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.02e-05/0.5623, allocations: 36 kB / 0.5583 GB, free: 53.46 MB / 378.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001441/0.5637, allocations: 0.9594 MB / 0.5592 GB, free: 52.5 MB / 378.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005504/0.5692, allocations: 6.131 MB / 0.5652 GB, free: 46.06 MB / 378.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009134/0.5702, allocations: 0.6705 MB / 0.5658 GB, free: 45.34 MB / 378.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.079e-05/0.5702, allocations: 12.38 kB / 0.5658 GB, free: 45.33 MB / 378.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.578e-05/0.5702, allocations: 35 kB / 0.5659 GB, free: 45.29 MB / 378.7 MB Notification: Performance of pre-optimization done (n=51): time 1.843e-06/0.5702, allocations: 4 kB / 0.5659 GB, free: 45.28 MB / 378.7 MB Notification: Performance of matching and sorting (n=54): time 0.00234/0.5726, allocations: 1.743 MB / 0.5676 GB, free: 43.47 MB / 378.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.371e-05/0.5726, allocations: 85.55 kB / 0.5677 GB, free: 43.37 MB / 378.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.001003/0.5736, allocations: 0.9413 MB / 0.5686 GB, free: 42.41 MB / 378.7 MB Notification: Performance of collectPreVariables (initialization): time 3.154e-05/0.5737, allocations: 37.7 kB / 0.5686 GB, free: 42.37 MB / 378.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0003222/0.574, allocations: 0.8013 MB / 0.5694 GB, free: 41.56 MB / 378.7 MB Notification: Performance of collectInitialBindings (initialization): time 9.117e-05/0.5741, allocations: 205.1 kB / 0.5696 GB, free: 41.36 MB / 378.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.854e-05/0.5741, allocations: 20 kB / 0.5696 GB, free: 41.34 MB / 378.7 MB Notification: Performance of setup shared object (initialization): time 5.44e-05/0.5742, allocations: 341.9 kB / 0.5699 GB, free: 41 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003738/0.5746, allocations: 237.9 kB / 0.5702 GB, free: 40.77 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004839/0.5751, allocations: 0.629 MB / 0.5708 GB, free: 39.95 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004704/0.5755, allocations: 342 kB / 0.5711 GB, free: 39.62 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.368e-06/0.5755, allocations: 4 kB / 0.5711 GB, free: 39.61 MB / 378.7 MB Notification: Performance of matching and sorting (n=124) (initialization): time 0.00127/0.5768, allocations: 1.01 MB / 0.5721 GB, free: 38.59 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 0.0007084/0.5775, allocations: 5.139 MB / 0.5771 GB, free: 33.05 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.328e-05/0.5776, allocations: 12 kB / 0.5771 GB, free: 33.04 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001327/0.5777, allocations: 44.78 kB / 0.5772 GB, free: 32.99 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006533/0.5784, allocations: 235.6 kB / 0.5774 GB, free: 32.76 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0006081/0.579, allocations: 1.296 MB / 0.5787 GB, free: 31.33 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005605/0.5796, allocations: 56.03 kB / 0.5787 GB, free: 31.27 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.689e-05/0.5796, allocations: 48 kB / 0.5788 GB, free: 31.23 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.56e-06/0.5796, allocations: 4 kB / 0.5788 GB, free: 31.22 MB / 378.7 MB Notification: Performance of postOpt replaceHomotopyWithSimplified (initialization): time 0.0009563/0.5806, allocations: 0.8224 MB / 0.5796 GB, free: 30.4 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.968e-06/0.5806, allocations: 12 kB / 0.5796 GB, free: 30.39 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 7.317e-05/0.5807, allocations: 44.78 kB / 0.5796 GB, free: 30.34 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005927/0.5813, allocations: 215.7 kB / 0.5798 GB, free: 30.13 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0005362/0.5818, allocations: 1.3 MB / 0.5811 GB, free: 28.7 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004823/0.5823, allocations: 36 kB / 0.5811 GB, free: 28.66 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.302e-05/0.5824, allocations: 44.25 kB / 0.5812 GB, free: 28.62 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.0004466/0.5828, allocations: 412.7 kB / 0.5816 GB, free: 28.21 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001145/0.583, allocations: 118.5 kB / 0.5817 GB, free: 28.09 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0008631/0.5838, allocations: 0.5748 MB / 0.5822 GB, free: 27.5 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.208e-06/0.5838, allocations: 7.938 kB / 0.5823 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.445e-06/0.5838, allocations: 0 / 0.5823 GB, free: 27.49 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.471e-06/0.5839, allocations: 4 kB / 0.5823 GB, free: 27.48 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002058/0.5859, allocations: 1.839 MB / 0.5841 GB, free: 25.57 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.767e-06/0.5859, allocations: 3.953 kB / 0.5841 GB, free: 25.56 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004495/0.5864, allocations: 107.9 kB / 0.5842 GB, free: 25.46 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.535e-05/0.5865, allocations: 24.84 kB / 0.5842 GB, free: 25.43 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.971e-05/0.5865, allocations: 12 kB / 0.5842 GB, free: 25.42 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005191/0.587, allocations: 1.288 MB / 0.5855 GB, free: 24 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.975e-06/0.587, allocations: 0 / 0.5855 GB, free: 24 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001098/0.5881, allocations: 1.029 MB / 0.5865 GB, free: 22.89 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002438/0.5884, allocations: 239.5 kB / 0.5867 GB, free: 22.64 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001043/0.5885, allocations: 12 kB / 0.5867 GB, free: 22.62 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004541/0.589, allocations: 39.97 kB / 0.5867 GB, free: 22.59 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.068e-05/0.589, allocations: 44.34 kB / 0.5868 GB, free: 22.54 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.558e-05/0.5891, allocations: 16 kB / 0.5868 GB, free: 22.53 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0007248/0.5898, allocations: 0.7123 MB / 0.5875 GB, free: 21.81 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.5898, allocations: 0 / 0.5875 GB, free: 21.81 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.001298/0.5911, allocations: 0.4922 MB / 0.588 GB, free: 21.32 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.0004119/0.5915, allocations: 424.8 kB / 0.5884 GB, free: 20.89 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.001535/0.5931, allocations: 1.257 MB / 0.5896 GB, free: 19.62 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 2.835e-06/0.5931, allocations: 0 / 0.5896 GB, free: 19.62 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0004311/0.5935, allocations: 362.4 kB / 0.5899 GB, free: 19.25 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009212/0.5945, allocations: 247 kB / 0.5902 GB, free: 19.01 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003135/0.5976, allocations: 3.044 MB / 0.5932 GB, free: 15.91 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004666/0.5981, allocations: 1.196 MB / 0.5943 GB, free: 14.68 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 0.0005855/0.5987, allocations: 157.1 kB / 0.5945 GB, free: 14.53 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001574/0.5988, allocations: 79.42 kB / 0.5945 GB, free: 14.45 MB / 378.7 MB Notification: Performance of SimCode: time 3.01e-07/0.5988, allocations: 0 / 0.5945 GB, free: 14.45 MB / 378.7 MB Notification: Performance of Templates: time 0.02036/0.6192, allocations: 14.8 MB / 0.609 GB, free: 15.75 MB / 394.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/jenkins/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